Skip to content

Conversation

dzonekl
Copy link

@dzonekl dzonekl commented Feb 8, 2024

Changes

  • Show Permissions
  • Show Size

file/options.go Outdated
Cursor string `short:"c" help:"The cursor character" default:">" env:"GUM_FILE_CURSOR"`
All bool `short:"a" help:"Show hidden and 'dot' files" default:"false" env:"GUM_FILE_ALL"`
Permissions bool `short:"p" help:"Show file permissions" default:"false" env:"GUM_FILE_PERMISSION"`
Size bool `short:"s" help:"Show file size" default:"false" env:"GUM_FILE_SIZE"`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent issue

@dzonekl dzonekl changed the title #494 Options for showing permissions and size Options for showing permissions and size Feb 11, 2024
Comment on lines +16 to +17
Permissions bool `short:"p" help:"Show file permissions" default:"false" env:"GUM_FILE_PERMISSION"`
Size bool `short:"s" help:"Show file size" default:"false" env:"GUM_FILE_SIZE"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should default to true, what do you think? Then we can add the negatable:"" option to allow for people to do --no-permissions and --no-size.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, that way default would remain as is.

@caarlos0
Copy link
Member

so sorry this got stale :(
to avoid handling the conflicts I re-created this in #717

thanks for the PR <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants