-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test the help command with an example
- Loading branch information
1 parent
a71a832
commit b577107
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/gsamokovarov/jump/cli" | ||
) | ||
|
||
func ExampleHelpCmd() { | ||
helpCmd(cli.Args{}, nil) | ||
|
||
// Output: | ||
// Usage: jump [COMMAND ...] | ||
// | ||
// Jump to a fuzzy-matched directory passed as an argument. | ||
// | ||
// Commands: | ||
// cd Fuzzy match a directory to jump to. | ||
// chdir Update the score of directory during chdir. | ||
// clean Cleans the database of inexisting entries. | ||
// hint Hints relevant paths for jumping. | ||
// pin Pin a directory to a search term. | ||
// shell Display a shell integration script. | ||
// top List the directories as they are scored. | ||
// | ||
// Options: | ||
// --help Show this screen. | ||
// --version Show version. | ||
} |