You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah I never remember to run the script there, I think it's just copy/pasting the stuff in manpages/commands into rebar3 shell running in the rebar3 repo.
As for the hooks for the doc, the best option is likely to run it with provider hooks which would only apply it to the current user's shell, but without arguments. If we find ourselves really needing to send all arguments, then maybe expanding the shell hooks will work, even if it's a bit less clean conceptually.
Environment
ArchLinux https://aur.archlinux.org/packages/rebar3
Current behaviour
shell-completion files are missing some commands:
rebar3 local (upgrade|install)
rebar3 get-deps
(perhaps the same asdeps
?)rebar3 completion
rebar3 do <TAB>
rebar3 plugins <TAB>
(missing sub-commands:upgrade
,list
)and commands are missing some parameters, like:
rebar3 shell --<TAB>
--config
--name
--sname
--setcookie
--script
--apps
--relname
--relvsn
--start-clean
--env-file
--user_drv_args
--eval
rebar3 eunit --<TAB>
--error_on_warning
(no longer exists,Invalid option --error_on_warning on task eunit
)--profile
(can be also done using env varREBAR_PROFILE
)--module
--test
--generator
--name
--sname
--sys_config
--setcookie
rebar3 dialyzer <TAB>
--incremental
--base-plt-location
--plt-location
--plt-prefix
--app
--base-plt-prefix
--statistics
...
Expected behaviour
Shell completion should contain all supported commands and their short/long params, except deprecated or intentionally hidden ones.
Ideas
I found out that this can be generated automatically using:
rebar3 completion -s bash -f ${FILE}
Maybe the shell-completion files can be re-generated automatically before tagging a release?
The text was updated successfully, but these errors were encountered: