Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !253

Merged
Created Oct 02, 2020 by Jérome Perrin@jeromeOwner

cli: fish shell completions

  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 4

cliff complete command only supports bash, but fish offers much more user friendly completions.

cliff uses a pluggable system, but this where new shell completions can be registered, but the plugin (CompleteFish) can not access the command manager to get more details about options, since fish can also show help of suggestion, we want to access the help of each option to show this during suggestions. Also we want to make some more clever suggestions (for example slapos node start complete with services identifiers). For these reasons we need to register a command to replace the default complete command and can not achieve this with simply a cliff.formatter.completion entry point.

This can be installed with:

slapos complete > ~/.bash_completion.d/slapos
slapos complete --shell fish > ~/.config/fish/completions/slapos.fish
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/shell_completions
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7