Skip to content

Commit

Permalink
Updates command descriptions and example app details
Browse files Browse the repository at this point in the history
  • Loading branch information
matzefriedrich committed Nov 27, 2024
1 parent 0c2fbbd commit d3de1ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/cmd/charmer/charmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion example/commands/crypto_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit d3de1ad

Please sign in to comment.