cmd, doc, test/system: Synchronize the summary with the code repository
https://github.com/containers/toolbox/pull/1549
This commit is contained in:
parent
85bed43a40
commit
d731d8f087
|
|
@ -1,7 +1,7 @@
|
|||
% toolbox 1
|
||||
|
||||
## NAME
|
||||
toolbox - Tool for containerized command line environments on Linux
|
||||
toolbox - Tool for interactive command line environments on Linux
|
||||
|
||||
## SYNOPSIS
|
||||
**toolbox** [*--assumeyes* | *-y*]
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ var (
|
|||
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "toolbox",
|
||||
Short: "Tool for containerized command line environments on Linux",
|
||||
Short: "Tool for interactive command line environments on Linux",
|
||||
PersistentPreRunE: preRun,
|
||||
RunE: rootRun,
|
||||
Version: version.GetVersion(),
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ func showManual(manual string) error {
|
|||
manBinary, err := exec.LookPath("man")
|
||||
if err != nil {
|
||||
if errors.Is(err, exec.ErrNotFound) {
|
||||
fmt.Printf("toolbox - Tool for containerized command line environments on Linux\n")
|
||||
fmt.Printf("toolbox - Tool for interactive command line environments on Linux\n")
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("Common commands are:\n")
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ teardown() {
|
|||
assert_success
|
||||
assert_line --index 0 --partial "toolbox(1)"
|
||||
assert_line --index 0 --partial "General Commands Manual"
|
||||
assert_line --index 3 --regexp "^[[:blank:]]+toolbox [‐-] Tool for containerized command line environments on Linux$"
|
||||
assert_line --index 3 --regexp "^[[:blank:]]+toolbox [‐-] Tool for interactive command line environments on Linux$"
|
||||
assert [ ${#lines[@]} -gt 4 ]
|
||||
assert [ ${#stderr_lines[@]} -eq 0 ]
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ teardown() {
|
|||
run --keep-empty-lines --separate-stderr "$TOOLBX" help
|
||||
|
||||
assert_success
|
||||
assert_line --index 0 "toolbox - Tool for containerized command line environments on Linux"
|
||||
assert_line --index 0 "toolbox - Tool for interactive command line environments on Linux"
|
||||
assert_line --index 2 "Common commands are:"
|
||||
assert_line --index 3 "create Create a new Toolbx container"
|
||||
assert_line --index 4 "enter Enter an existing Toolbx container"
|
||||
|
|
@ -86,7 +86,7 @@ teardown() {
|
|||
assert_success
|
||||
assert_line --index 0 --partial "toolbox(1)"
|
||||
assert_line --index 0 --partial "General Commands Manual"
|
||||
assert_line --index 3 --regexp "^[[:blank:]]+toolbox [‐-] Tool for containerized command line environments on Linux$"
|
||||
assert_line --index 3 --regexp "^[[:blank:]]+toolbox [‐-] Tool for interactive command line environments on Linux$"
|
||||
assert [ ${#lines[@]} -gt 4 ]
|
||||
assert [ ${#stderr_lines[@]} -eq 0 ]
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ teardown() {
|
|||
run --keep-empty-lines --separate-stderr "$TOOLBX" --help
|
||||
|
||||
assert_success
|
||||
assert_line --index 0 "toolbox - Tool for containerized command line environments on Linux"
|
||||
assert_line --index 0 "toolbox - Tool for interactive command line environments on Linux"
|
||||
assert_line --index 2 "Common commands are:"
|
||||
assert_line --index 3 "create Create a new Toolbx container"
|
||||
assert_line --index 4 "enter Enter an existing Toolbx container"
|
||||
|
|
|
|||
Loading…
Reference in New Issue