diff --git a/example/cmd/charmer/charmer.go b/example/cmd/charmer/charmer.go index 906121c..42b59e8 100644 --- a/example/cmd/charmer/charmer.go +++ b/example/cmd/charmer/charmer.go @@ -10,7 +10,7 @@ import ( func main() { err := - charmer.NewCommandLineApplication("charmer-example", ""). + charmer.NewCommandLineApplication("charmer-example", "A sample application to showcase the charmer package."). AddCommand(commands.CreateHelloCommand()). AddGroupCommand(commands.CreateCryptCommand(), func(crypto types.CommandSetup) { crypto.AddCommand( diff --git a/example/commands/crypto_commands.go b/example/commands/crypto_commands.go index 42fe038..f8b1796 100644 --- a/example/commands/crypto_commands.go +++ b/example/commands/crypto_commands.go @@ -8,9 +8,10 @@ import ( type cryptoCommand struct { types.BaseCommand - use types.CommandName `flag:"crypt"` + use types.CommandName `flag:"crypt" short:"Provides commands to encrypt and decrypt messages." long:"The command group offers tools for securely encrypting messages and decrypting them with a provided passphrase. Use these commands to ensure message confidentiality and safe data transmission."` } +// CreateCryptCommand initializes a new cobra.Command, providing sub-commands for encrypting and decrypting messages. func CreateCryptCommand() *cobra.Command { instance := &cryptoCommand{ BaseCommand: types.BaseCommand{},