Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Commit

Permalink
Add env as alias to environ
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Jun 27, 2017
1 parent 1e7d1e3 commit 3e61afe
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions cmds/environ.go
Expand Up @@ -40,8 +40,9 @@ type EnvironmentData struct {

func NewCmdGetEnviron(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "environ",
Short: "Get environment from fabric8-environments configmap",
Use: "environ",
Short: "Get environment from fabric8-environments configmap",
Aliases: []string{"env"},
Run: func(cmd *cobra.Command, args []string) {
detectedNS, c, _ := getOpenShiftClient(f)

Expand Down Expand Up @@ -73,9 +74,10 @@ func NewCmdGetEnviron(f *cmdutil.Factory) *cobra.Command {

func NewCmdCreateEnviron(f *cmdutil.Factory) (cmd *cobra.Command) {
cmd = &cobra.Command{
Use: "environ",
Short: "Create environment from fabric8-environments configmap",
Long: "gofabric8 create environ environKey namespace=string order=int ...",
Use: "environ",
Short: "Create environment from fabric8-environments configmap",
Long: "gofabric8 create environ environKey namespace=string order=int ...",
Aliases: []string{"env"},
Run: func(cmd *cobra.Command, args []string) {
var ev EnvironmentData
var yamlData []byte
Expand Down Expand Up @@ -138,8 +140,9 @@ func NewCmdCreateEnviron(f *cmdutil.Factory) (cmd *cobra.Command) {
// NewCmdDeleteEnviron is a command to delete an environ using: gofabric8 delete environ abcd
func NewCmdDeleteEnviron(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "environ",
Short: "Delete environment from fabric8-environments configmap",
Use: "environ",
Short: "Delete environment from fabric8-environments configmap",
Aliases: []string{"env"},
Run: func(cmd *cobra.Command, args []string) {
detectedNS, c, _ := getOpenShiftClient(f)

Expand Down

0 comments on commit 3e61afe

Please sign in to comment.