Skip to content

Options for showing permissions and size#495

Closed
dzonekl wants to merge 2 commits intocharmbracelet:mainfrom
dzonekl:main
Closed

Options for showing permissions and size#495
dzonekl wants to merge 2 commits intocharmbracelet:mainfrom
dzonekl:main

Conversation

@dzonekl
Copy link
Copy Markdown

@dzonekl dzonekl commented Feb 8, 2024

Changes

  • Show Permissions
  • Show Size

Comment thread 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
Copy Markdown
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 thread file/options.go
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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