-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
144 additions
and
176 deletions.
There are no files selected for viewing
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
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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ var createCmd = &cobra.Command{ | |
name := args[0] | ||
|
||
if err := environment.Create(name, description, locationID, projectID, agentName, flowVersions); err != nil { | ||
global.Log.Errorf(err.Error()) | ||
global.Log.Errorf("%s", err.Error()) | ||
os.Exit(1) | ||
} | ||
}, | ||
|
@@ -41,22 +41,22 @@ func init() { | |
|
||
createCmd.Flags().StringSliceP("flow-versions", "s", []string{}, "List of Flow and its version to be added to this environment, comma separated. Format: flowName1@version1,flowName2|version2. Example: Default Start [email protected]|Buy [email protected] (required)") | ||
if err := createCmd.MarkFlagRequired("flow-versions"); err != nil { | ||
global.Log.Errorf(err.Error()) | ||
global.Log.Errorf("%s", err.Error()) | ||
os.Exit(1) | ||
} | ||
createCmd.Flags().StringP("agent-name", "a", "", "Dialogflow CX Agent Name (required)") | ||
if err := createCmd.MarkFlagRequired("agent-name"); err != nil { | ||
global.Log.Errorf(err.Error()) | ||
global.Log.Errorf("%s", err.Error()) | ||
os.Exit(1) | ||
} | ||
createCmd.Flags().StringP("project-id", "p", "", "Dialogflow CX Project ID (required)") | ||
if err := createCmd.MarkFlagRequired("project-id"); err != nil { | ||
global.Log.Errorf(err.Error()) | ||
global.Log.Errorf("%s", err.Error()) | ||
os.Exit(1) | ||
} | ||
createCmd.Flags().StringP("location-id", "l", "", "Dialogflow CX Location ID of the Project (required)") | ||
if err := createCmd.MarkFlagRequired("location-id"); err != nil { | ||
global.Log.Errorf(err.Error()) | ||
global.Log.Errorf("%s", err.Error()) | ||
os.Exit(1) | ||
} | ||
createCmd.Flags().StringP("description", "d", "", "Description for this environment (optional)") | ||
|
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.