Skip to content

Commit

Permalink
fix: Alphabetical ordering of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed May 18, 2024
1 parent f24e8ac commit a78f1cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## Use cases

```
❯ gstring
❯ gstring --help
Usage: gstring <command> [flags]
A tool to work with strings
Expand All @@ -36,12 +36,14 @@ Commands:
case random ForMat rANdom CaSE
case snake format_snake_case
case upper FORMAT UPPER
htpasswd Create a htpasswd string
reverse Reverse the input
hash sha256 Calculate Sha256
hash sha512 Calculate Sha512
hash md5 Calculate MD5
htpasswd Create a htpasswd string
reverse Reverse the input
version Show version information
Run "gstring <command> --help" for more information on a command.
```

## Get gstring
Expand Down
8 changes: 4 additions & 4 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ type CLI struct {
Snake snakeCaseCmd `cmd:"" help:"format_snake_case"`
Upper upperCaseCmd `cmd:"" help:"FORMAT UPPER"`
} `cmd:"" help:"Format various cases"`
HtPassWD HtPassWDCmd `cmd:"" name:"htpasswd" help:"Create a htpasswd string"`
Reverse reverseCmd `cmd:"" help:"Reverse the input"`
Hash struct {
Hash struct {
SHA256 sha256Cmd `cmd:"" name:"sha256" help:"Calculate Sha256"`
SHA512 sha512Cmd `cmd:"" name:"sha512" help:"Calculate Sha512"`
MD5 md5Cmd `cmd:"" name:"md5" help:"Calculate MD5"`
} `cmd:"" help:"Calculate SHA Hashsums"`
Version versionCmd `cmd:"" help:"Show version information"`
HtPassWD HtPassWDCmd `cmd:"" name:"htpasswd" help:"Create a htpasswd string"`
Reverse reverseCmd `cmd:"" help:"Reverse the input"`
Version versionCmd `cmd:"" help:"Show version information"`
}

type HtPassWDCmd struct {
Expand Down

0 comments on commit a78f1cb

Please sign in to comment.