Skip to content

Commit

Permalink
Format date and change default expires
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleimp committed Jul 30, 2020
1 parent 0ef36f6 commit e17eb8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Run(version string, args []string) error {
Name: "expires",
Aliases: []string{"e"},
Usage: "expires after days",
Value: 7,
Value: 40,
},
},
Action: runCheck,
Expand Down
6 changes: 4 additions & 2 deletions internal/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ func Start(ctx *context.Context) ([]flag.Flag, error) {
createdAt := bold.Sprint("Created at:")

log.Info(color.New(color.Bold, color.FgGreen).Sprintf(f.Name))
log.Info(f.Description)
log.Info(fmt.Sprintf("%s %v", createdAt, f.CreatedAt))
if f.Description != "" {
log.Info(f.Description)
}
log.Info(fmt.Sprintf("%s %v", createdAt, f.CreatedAt.Format("01/02/2006 3:04 PM")))
log.Info(fmt.Sprintf("%s/#/features/strategies/%s", ctx.Config.URL, f.Name))
fmt.Println()
}
Expand Down

0 comments on commit e17eb8f

Please sign in to comment.