You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/09/10 15:52:13 UTC
[camel-k] branch master updated: Provide better instructions on the
kit create command for missing name
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new 7f7d15f Provide better instructions on the kit create command for missing name
7f7d15f is described below
commit 7f7d15fa55ff0d5b072df98aedb952fa6d19a724
Author: Mike Dobozy <do...@gmail.com>
AuthorDate: Tue Sep 10 11:52:08 2019 -0400
Provide better instructions on the kit create command for missing name
Fixes #932.
---
pkg/cmd/kit_create.go | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pkg/cmd/kit_create.go b/pkg/cmd/kit_create.go
index a71b5c1..1b8d89a 100644
--- a/pkg/cmd/kit_create.go
+++ b/pkg/cmd/kit_create.go
@@ -20,7 +20,6 @@ package cmd
import (
"errors"
"fmt"
- "strconv"
"strings"
"github.com/apache/camel-k/pkg/trait"
@@ -41,7 +40,7 @@ func newKitCreateCmd(rootCmdOptions *RootCmdOptions) *cobra.Command {
}
cmd := cobra.Command{
- Use: "create",
+ Use: "create <name>",
Short: "Create an Integration Kit",
Long: `Create an Integration Kit.`,
Args: impl.validateArgs,
@@ -76,7 +75,7 @@ type kitCreateCommand struct {
func (command *kitCreateCommand) validateArgs(_ *cobra.Command, args []string) error {
if len(args) != 1 {
- return errors.New("accepts 1 arg, received " + strconv.Itoa(len(args)))
+ return errors.New("create expects a single name argument")
}
return nil