cmd, doc, test/system: Synchronize the summary with the code repository

https://github.com/containers/toolbox/pull/1549
This commit is contained in:
Debarshi Ray 2024-09-26 19:38:23 +02:00
parent 85bed43a40
commit d731d8f087
4 changed files with 7 additions and 7 deletions

View File

@ -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*]

View File

@ -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(),

View File

@ -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")

View File

@ -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"