summaryrefslogtreecommitdiffstats
path: root/cmd-projects.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 22:13:22 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 22:13:22 +0100
commit2231e3eae86c5e3ae05e30f667d331f5875c7884 (patch)
tree44c56c9d8b3bb4c6cbee26bedc2c0aec9d9bb5f1 /cmd-projects.go
parent84273d6128b7c3c9d31c2f3a1453107a78e949a9 (diff)
Added target and terminal supportv1.1.0
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'cmd-projects.go')
-rw-r--r--cmd-projects.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-projects.go b/cmd-projects.go
index 1aa0dfc..e056563 100644
--- a/cmd-projects.go
+++ b/cmd-projects.go
@@ -63,7 +63,7 @@ func initCmdProjects(cmdDef *[]cli.Command) {
},
{
Name: "get",
- Usage: "Get a property of a project",
+ Usage: "Get properties of a project",
Action: projectsGet,
Flags: []cli.Flag{
cli.StringFlag{
@@ -180,12 +180,12 @@ func _displayProjects(prjs []xaapiv1.ProjectConfig, verbose bool) {
func projectsAdd(ctx *cli.Context) error {
// Decode project type
- var ptype xaapiv1.ProjectType
+ var pType xaapiv1.ProjectType
switch strings.ToLower(ctx.String("type")) {
case "pathmap", "pm":
- ptype = xaapiv1.TypePathMap
+ pType = xaapiv1.TypePathMap
case "cloudsync", "cs":
- ptype = xaapiv1.TypeCloudSync
+ pType = xaapiv1.TypeCloudSync
default:
return cli.NewExitError("Unknown project type", 1)
}
@@ -193,7 +193,7 @@ func projectsAdd(ctx *cli.Context) error {
prj := xaapiv1.ProjectConfig{
ServerID: XdsServerIDGet(),
Label: ctx.String("label"),
- Type: ptype,
+ Type: pType,
ClientPath: ctx.String("path"),
ServerPath: ctx.String("server-path"),
}