Skip to content

Commit

Permalink
Fix some formatting + exports in cmd/saw.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Jun 30, 2018
1 parent 743e8b7 commit 2abee63
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd/saw.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"github.com/spf13/cobra"
)

var sawCommand = &cobra.Command{
// SawCommand is the main top-level command
var SawCommand = &cobra.Command{
Use: "saw <command>",
Short: "A fast, multipurpose tool for AWS CloudWatch Logs",
Long: "Saw is a fast, multipurpose tool for cutting through AWS CloudWatch Logs.",
Example: ` saw version
saw groups --prefix prod
saw streams production --prefix api
saw watch production --prefix api --filter error`,
Long: "Saw is a fast, multipurpose tool for AWS CloudWatch Logs.",
Example: ` saw groups
saw streams production
saw watch production`,
Run: func(cmd *cobra.Command, args []string) {
cmd.HelpFunc()(cmd, args)
},
Expand All @@ -21,11 +21,11 @@ var sawCommand = &cobra.Command{
var awsConfig config.AWSConfiguration

func init() {
sawCommand.AddCommand(groupsCommand)
sawCommand.AddCommand(streamsCommand)
sawCommand.AddCommand(versionCommand)
sawCommand.AddCommand(watchCommand)
sawCommand.AddCommand(getCommand)
sawCommand.PersistentFlags().StringVar(&awsConfig.Region, "region", "", "override profile AWS region")
sawCommand.PersistentFlags().StringVar(&awsConfig.Profile, "profile", "", "override default AWS profile")
SawCommand.AddCommand(groupsCommand)
SawCommand.AddCommand(streamsCommand)
SawCommand.AddCommand(versionCommand)
SawCommand.AddCommand(watchCommand)
SawCommand.AddCommand(getCommand)
SawCommand.PersistentFlags().StringVar(&awsConfig.Region, "region", "", "override profile AWS region")
SawCommand.PersistentFlags().StringVar(&awsConfig.Profile, "profile", "", "override default AWS profile")
}

0 comments on commit 2abee63

Please sign in to comment.