Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for showing permissions and size #495

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

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.

2 participants