mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-12 07:54:36 +08:00
fix: adding run command in code to match doc (#460)
* fix: devenv: sync doc and actually supported commands, add run cmd --------- Co-authored-by: perrze <contact@perrze.fr> Co-authored-by: Stéphane Lesimple <stephane.lesimple+bastion@ovhcloud.com> Co-authored-by: Adrien Barreau <adrien.barreau@live.fr>
This commit is contained in:
parent
f51bee273e
commit
010959c4ec
1 changed files with 7 additions and 3 deletions
|
@ -72,6 +72,7 @@ case "$cmd" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
bash) docker exec -it $NAME bash;;
|
bash) docker exec -it $NAME bash;;
|
||||||
|
run) docker exec -it $NAME "$@";;
|
||||||
*)
|
*)
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Usage: $0 COMMAND [OPTIONS]
|
Usage: $0 COMMAND [OPTIONS]
|
||||||
|
@ -79,15 +80,18 @@ Usage: $0 COMMAND [OPTIONS]
|
||||||
COMMAND may be one of the following:
|
COMMAND may be one of the following:
|
||||||
|
|
||||||
tidy [FILES..] runs perltidy on several or all the Perl source files, modifying them if needed
|
tidy [FILES..] runs perltidy on several or all the Perl source files, modifying them if needed
|
||||||
tidycheck [FILES..] runs perltidy in dry-run mode, and returns an error if files are not tidy
|
checktidy [FILES..] runs perltidy in dry-run mode, and returns an error if files are not tidy
|
||||||
perlcritic runs perlcritic on all the Perl source files
|
perlcritic runs perlcritic on all the Perl source files
|
||||||
shellcheck [FILES..] runs shellcheck on all the shell source files
|
shellcheck [FILES..] runs shellcheck on all the shell source files
|
||||||
lint runs tidy, perlcritic and shellcheck on all files in one command
|
lint runs tidy, perlcritic and shellcheck on all files in one command
|
||||||
|
|
||||||
doc generates the documentation
|
doc generates the documentation
|
||||||
sphinx-view-objects shows the named objects of the Sphinx documentation that can be referenced
|
sphinx-view-objects shows the named objects of the Sphinx documentation that can be referenced
|
||||||
rebuild forces the rebuild of the devenv docker image that is needed to run all the above commands
|
|
||||||
run <COMMAND> spawn an interactive shell to run any arbitrary command in the devenv docker
|
|
||||||
doc-serve <PORT> starts a local HTTP python server on PORT to view generated documentation
|
doc-serve <PORT> starts a local HTTP python server on PORT to view generated documentation
|
||||||
|
|
||||||
|
bash spawns an interactive shell to run any arbitrary command in the devenv docker
|
||||||
|
run <COMMAND> runs an arbitrary command in the devenv docker
|
||||||
|
rebuild forces the rebuild of the devenv docker image that is needed to run all the above commands
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue