-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructuring cli package, merging vault get-export, put-import and i…
…nfo command with base vault command
- Loading branch information
Showing
35 changed files
with
1,169 additions
and
1,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package cmdenv | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
"savesecrets.org/slv/cli/internal/commands/utils" | ||
) | ||
|
||
var ( | ||
// Commands | ||
envCmd *cobra.Command | ||
envNewCmd *cobra.Command | ||
envNewServiceCmd *cobra.Command | ||
envNewUserCmd *cobra.Command | ||
envListSearchCmd *cobra.Command | ||
envSelfCmd *cobra.Command | ||
envSelfSetCmd *cobra.Command | ||
) | ||
|
||
var ( | ||
// Flags | ||
envNameFlag = utils.FlagDef{ | ||
Name: "name", | ||
Shorthand: "n", | ||
Usage: "Environment name", | ||
} | ||
|
||
envEmailFlag = utils.FlagDef{ | ||
Name: "email", | ||
Shorthand: "e", | ||
Usage: "Environment email", | ||
} | ||
|
||
envTagsFlag = utils.FlagDef{ | ||
Name: "tags", | ||
Shorthand: "t", | ||
Usage: "Environment tags", | ||
} | ||
|
||
envAddFlag = utils.FlagDef{ | ||
Name: "add", | ||
Usage: "Adds environment to default profile", | ||
} | ||
|
||
EnvSearchFlag = utils.FlagDef{ | ||
Name: "search", | ||
Shorthand: "s", | ||
Usage: "Searches query to filter environments", | ||
} | ||
|
||
EnvSelfFlag = utils.FlagDef{ | ||
Name: "self", | ||
Usage: "Shares with the environment configured environment as self", | ||
} | ||
|
||
envDefFlag = utils.FlagDef{ | ||
Name: "env-def", | ||
Shorthand: "e", | ||
Usage: "Environment definition", | ||
} | ||
|
||
// Provider Flags | ||
awsARNFlag = utils.FlagDef{ | ||
Name: "arn", | ||
Usage: "ARN for the AWS KMS key", | ||
} | ||
|
||
gcpKmsResNameFlag = utils.FlagDef{ | ||
Name: "resource-name", | ||
Usage: "GCP KMS resource name", | ||
} | ||
|
||
kmsRSAPublicKey = utils.FlagDef{ | ||
Name: "rsa-pubkey", | ||
Usage: "KMS public key [RSA 4096] as pem file (Recommended to perform offline access binding)", | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.