client/container: refactor w/ updated global basename
This commit is contained in:
@@ -129,6 +129,8 @@ function tor::restart()
|
||||
|
||||
function main()
|
||||
{
|
||||
[ -z "$global_basename" ] && lib_utils::die_fatal
|
||||
|
||||
local -r _usage="
|
||||
\e[32mDescription:\e[0m
|
||||
|
||||
@@ -137,10 +139,10 @@ function main()
|
||||
\e[32mUsage:\e[0m
|
||||
|
||||
\e[37;2m# Client (host) command\e[0m
|
||||
$ dfi $instance plugins repo${global_arg_delim_1}$(basename $0) <{start|up}|restart|{stop|down}>
|
||||
$ $global_basename $instance plugins repo${global_arg_delim_1}$(basename $0) <{start|up}|restart|{stop|down}>
|
||||
|
||||
\e[37;2m# Container command (see \`fetch\` help for usage)\e[0m
|
||||
$ dfi <profile${global_arg_delim_1}subprofile> fetch help
|
||||
$ $global_basename <profile${global_arg_delim_1}subprofile> fetch help
|
||||
"
|
||||
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user