Wrappers in completions/ call --generate-shell-completion; a Go
ShellComplete callback emits flag names so urfave's default response
(subcommands only) is replaced with the full candidate set.
This replaces old hard-coded way to auto-complete using shell script's
parsing.
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
* chore(repo): remove shell implementation
* chore(repo): remove bash completion for sub-commands
There is no need for separate files as there will be no dedicated binary
for sub-commands
* chore(repo): remove zsh completion for sub-commands
There is no need for separate files as there will be no dedicated binary
for sub-commands
* chore(repo): delete RFC
We are not using RFC at the moment
* chore(repo): move golang project to the root
* chore(ci): move golang project to the root
* chore(repo): use standard .gitignore for golang projects
source: https://github.com/github/gitignore/blob/main/Go.gitignore
* chore(ci): compatibility CI to handle a golang project
* refactor(ci): run shell script checks against the inside-distrobox files
* refactor(ci): merge ci.yml workflow into main.yml
* completion/bash: remove autocomplete of "version" and "help" subcommands
Before this change, "distrobox version" and distrobox "help" would
autocomplete with container names. Now it does not autocomplete as
those commands don't accept any parameter.
* completion/bash: complete "--home" option with absolute path
Before this change, "distrobox create --home" would expand
to "distrobox create --home myDir" which the distrobox command would
fail because the "home" option expects a absolute path. Now it would
expand the path with "/home/myUser/myDir"
* Fix auth cookie symlink in init containers
* fix bash completions
* improve bash autocompletion
fix autocompletion of distrobox main command options and commands that include hyphen.
* Fix user integrations from not working after exit
Prevnt systemd from cleaning up the important user integration files when exiting a session and no other active sessions for that user are present.
* Fix enable linger permission issue
Perform this as root outside of the systemd user integration service file as it's run within the user slice and does not have the permission to enable linger.
* Add distrobox ls
Adds the `distrobox ls` command, as a shortcut for `distrobox list`.
* ls: fix completion
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
---------
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
Let's add a `--compatibility` flag, in order to return the list of
compatible container images to use. This method does not depend on `man`
to work.
Using this, we can now also use it as source to suggest image names
during creation.
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>