Skip to content

Indenting Despite --descriptions-only or exclude tasks #71

@entozoon

Description

@entozoon
{
  "scripts": {
    "foo": "foo",
    "bar baz qux quux quuz": "bar"
  },
  "ntl": {
    "descriptions": {
      "foo": "Lorem ipsum"
    }
  }
}

Even with using the descriptions only option, it still indents the script name as if those other option(s) were listed:

$ npx ntl
? Select a task to run: (Use arrow keys)
❯                   foo › Lorem ipsum 
  bar baz qux quux quuz ›  
  
$ npx ntl -o   
? Select a task to run: (Use arrow keys)
❯                   foo › Lorem ipsum 

Why does it matter?
If you have the situation where you only want to show scripts that have descriptions, but then some of the hidden script names are really long

Same thing occurs if you exclude a task with the -e exclude task arg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions