Skip to content

Commit

Permalink
Renames 'mock' subcommand to 'up'.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Aug 30, 2021
1 parent 3971971 commit 6936c90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/mock.go → cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const ContainerConfigDir = "/opt/imposter/config"
var ImageTag string
var Port string

// mockCmd represents the mock command
var mockCmd = &cobra.Command{
Use: "mock [CONFIG_DIR]",
// upCmd represents the up command
var upCmd = &cobra.Command{
Use: "up [CONFIG_DIR]",
Short: "Start live mocks of APIs",
Long: `Starts a live mock of your APIs, using their Imposter configuration.`,
Args: cobra.RangeArgs(0, 1),
Expand All @@ -64,9 +64,9 @@ var mockCmd = &cobra.Command{
}

func init() {
mockCmd.Flags().StringVarP(&ImageTag, "version", "v", "latest", "Imposter engine version")
mockCmd.Flags().StringVarP(&Port, "port", "p", "8080", "Port on which to listen")
rootCmd.AddCommand(mockCmd)
upCmd.Flags().StringVarP(&ImageTag, "version", "v", "latest", "Imposter engine version")
upCmd.Flags().StringVarP(&Port, "port", "p", "8080", "Port on which to listen")
rootCmd.AddCommand(upCmd)
}

func startMockEngine(configDir string, port int) {
Expand Down

0 comments on commit 6936c90

Please sign in to comment.