Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Refactor: Group Constants alphabetically
Browse files Browse the repository at this point in the history
For readability, move constants based on alphabetically.
  • Loading branch information
VijayanB committed Aug 12, 2020
1 parent d36fe3e commit e440e8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

const (
commandCreate = "create"
interactive = "interactive"
generate = "generate-skeleton"
interactive = "interactive"
)

//createCmd creates detectors based on file configuration, if interactive mode is on,
Expand Down
6 changes: 3 additions & 3 deletions cli/cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ import (
)

const (
profileBaseCmdName = "profile"
alignLeft = 0
createNewProfileCmdName = "create"
deleteNewProfileCmdName = "delete"
listProfileCmdName = "list"
esadProfile = "ESAD_PROFILE"
listProfileCmdName = "list"
padding = 3
alignLeft = 0
profileBaseCmdName = "profile"
)

//profilesCmd is main command for profile operations like list, create and delete
Expand Down
8 changes: 4 additions & 4 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ import (
)

const (
defaultFileType = "yaml"
defaultConfigFileName = "config"
cliName = "esad"
defaultConfigFileName = "config"
defaultFileType = "yaml"
esadConfigFile = "ESAD_CONFIG_FILE"
FlagConfig = "config"
FlagUser = "user"
FlagPassword = "password"
FlagEndpoint = "endpoint"
FlagPassword = "password"
FlagProfile = "profile"
FlagUser = "user"
)

var cfgFile string
Expand Down

0 comments on commit e440e8b

Please sign in to comment.