Repository: nushell/nushell
File: crates/nu-command/src/debug/experimental_options.rs (Rust)

Code before:
use nu_engine::command_prelude::*;
use nu_experimental::Status;

#[derive(Clone)]
pub struct DebugExperimentalOptions;

impl Command for DebugExperimentalOptions {
    fn name(&self) -> &str {
        "debug experimental-options"
    }

    fn signature(&self) -> Signature {
        Signature::new(self.name())
            .input_output_type(
                Type::Nothing,
                Type::Table(Box::from([
                    (String::from("identifier"), Type::String),
                    (String::from("enabled"), Type::Bool),
                    (String::from("status"), Type::String),
                    (String::from("description"), Type::String),
                    (String::from("since"), Type::String),
                    (String::from("pr"), Type::String),
                ])),
            )
            .add_help()
            .category(Category::Debug)
    }

    fn description(&self) -> &str {
        "Show all experimental options."
    }

    fn run(
        &self,
        _engine_state: &EngineState,
        _stack: &mut Stack,
        call: &Call,
        _input: PipelineData,
    ) -> Result<PipelineData, ShellError> {
        Ok(PipelineData::value(
            Value::list(
                nu_experimental::ALL
                    .iter()
                    .map(|option| {
                        Value::record(
                            nu_protocol::record! {
                                "identifier" => Value::string(option.identifier(), call.head),

Review comment (suggestion):
shouldn't this be issue?
```suggestion
                    (String::from("issue"), Type::String),
```

Code after:
use nu_engine::command_prelude::*;
use nu_experimental::Status;

#[derive(Clone)]
pub struct DebugExperimentalOptions;

impl Command for DebugExperimentalOptions {
    fn name(&self) -> &str {
        "debug experimental-options"
    }

    fn signature(&self) -> Signature {
        Signature::new(self.name())
            .input_output_type(
                Type::Nothing,
                Type::Table(Box::from([
                    (String::from("identifier"), Type::String),
                    (String::from("enabled"), Type::Bool),
                    (String::from("status"), Type::String),
                    (String::from("description"), Type::String),
                    (String::from("since"), Type::String),
                    (String::from("issue"), Type::String),
                ])),
            )
            .add_help()
            .category(Category::Debug)
    }

    fn description(&self) -> &str {
        "Show all experimental options."
    }

    fn run(
        &self,
        _engine_state: &EngineState,
        _stack: &mut Stack,
        call: &Call,
        _input: PipelineData,
    ) -> Result<PipelineData, ShellError> {
        Ok(PipelineData::value(
            Value::list(
                nu_experimental::ALL
                    .iter()
                    .map(|option| {
                        Value::record(
                            nu_protocol::record! {
                                "identifier" => Value::string(option.identifier(), call.head),