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

feat: Add autocompletion hints #1225

Merged
merged 2 commits into from
Sep 6, 2024
Merged

feat: Add autocompletion hints #1225

merged 2 commits into from
Sep 6, 2024

Conversation

nardoor
Copy link
Contributor

@nardoor nardoor commented Sep 5, 2024

Feature

Add auto completion hints

This helps some shells to propose better completions.
For instance on zsh, no completion were proposed when doing rustic backup <...>[TAB]

Hints added

  • rustic backup <...>[TAB]
  • rustic backup --as-path [TAB] <...>
  • rustic backup --stdin-filename [TAB] <...> This one is for comfort, as the compl might not help (or might), but my opinion is that it's better than nothing.
  • rustic diff <snapshot_id> <...>[TAB]
  • rustic find --path <...>[TAB]
  • rustic --log-file <...>[TAB]`

…letion

- BackupCmd
  - `SOURCE`
  - `--stdin-filename`
  - `--as-path`
- DiffCmd
  - `PATH2`
- FindCmd
  - `--path`
- GlobalOptions
  - `--log-file`
@nardoor
Copy link
Contributor Author

nardoor commented Sep 5, 2024

similar / complementary change in rustic-rs/rustic_core#257

@aawsome aawsome changed the title Feature/autocompletion hints feat: Add autocompletion hints Sep 5, 2024
Copy link
Member

@aawsome aawsome left a comment

Choose a reason for hiding this comment

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

LGTM

@aawsome aawsome added this pull request to the merge queue Sep 6, 2024
Merged via the queue into main with commit 590b624 Sep 6, 2024
28 checks passed
@aawsome aawsome deleted the feature/autocompletion_hints branch September 6, 2024 06:22
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