From a78f1cb9936905743158ac9e9d9d617acd0177c9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 May 2024 13:14:21 +0200 Subject: [PATCH] fix: Alphabetical ordering of commands --- README.md | 8 +++++--- cli.go | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ac53d48..adf4029 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ## Use cases ``` -❯ gstring +❯ gstring --help Usage: gstring [flags] A tool to work with strings @@ -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 --help" for more information on a command. ``` ## Get gstring diff --git a/cli.go b/cli.go index ef893f4..831549b 100644 --- a/cli.go +++ b/cli.go @@ -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 {