Skip to content

Commit

Permalink
config generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jlgore committed Mar 5, 2024
1 parent 375f909 commit f3e373b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@ import (
var generateCmd = &cobra.Command{
Use: "generate",
Short: "Generate a new configuration file",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Long: `The 'generate' command creates a new configuration file named '.tailtrail.yaml' in the user's home directory.
This configuration file is used by the tailtrail application to connect to AWS services. The file contains the AWS profile and region that the tailtrail application should use when interacting with AWS.
The 'generate' command requires two flags: 'profile' and 'region'.
The 'profile' flag specifies the AWS profile that the tailtrail application should use. This should match one of the profiles defined in your AWS credentials file.
The 'region' flag specifies the AWS region that the tailtrail application should use. This should be a valid AWS region, such as 'us-east-1' or 'eu-west-1'.
For example, you can run the 'generate' command like this:
tailtrail generate --profile my-profile --region us-east-1
This will create a '.tailtrail.yaml' file in your home directory with 'my-profile' as the profile and 'us-east-1' as the region.`,

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("generate called")

Expand Down

0 comments on commit f3e373b

Please sign in to comment.