Skip to content

Commit

Permalink
Removed tail Command...
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun committed Mar 25, 2017
1 parent e7a1828 commit 75a147c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
31 changes: 0 additions & 31 deletions commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,37 +487,6 @@ var invokeCmd = &cobra.Command{
},
}

var tailCmd = &cobra.Command{
Use: "tail",
Short: "Tail Real-Time AWS Cloudformation events",
Example: "qaz tail -r eu-west-1",
Run: func(cmd *cobra.Command, args []string) {
job.request = "tail"

err := configReader(job.cfgFile)
if err != nil {
handleError(err)
return
}

sess, err := awsSession()
if err != nil {
handleError(err)
}

// Tail each stack on it's own goroutine.
for _, s := range stacks {
wg.Add(1)
go func(s *stack, sess *session.Session) {
verbose(s.stackname, "", sess)
wg.Done()
}(s, sess)
}

wg.Wait() // Will probably wait forevery
},
}

var policyCmd = &cobra.Command{
Use: "set-policy",
Short: "Set Stack Policies based on configured value",
Expand Down
5 changes: 2 additions & 3 deletions commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func init() {
changeCmd.AddCommand(create, rm, list, execute, desc)

// Add Config --config common flag
for _, cmd := range []interface{}{tailCmd, checkCmd, updateCmd, outputsCmd, statusCmd, terminateCmd, generateCmd, deployCmd, policyCmd} {
for _, cmd := range []interface{}{checkCmd, updateCmd, outputsCmd, statusCmd, terminateCmd, generateCmd, deployCmd, policyCmd} {
cmd.(*cobra.Command).Flags().StringVarP(&job.cfgFile, "config", "c", "config.yml", "path to config file")
}

Expand All @@ -100,8 +100,7 @@ func init() {
generateCmd, deployCmd, terminateCmd,
statusCmd, outputsCmd, initCmd,
updateCmd, checkCmd, exportsCmd,
invokeCmd, tailCmd, changeCmd,
policyCmd,
invokeCmd, changeCmd, policyCmd,
)

// Setup logging
Expand Down

0 comments on commit 75a147c

Please sign in to comment.