|
|
@ -15,9 +15,9 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
shareAddUsage = "[ALPHA] share add <name> <path>"
|
|
|
|
shareAddUsage = "share add <name> <path>"
|
|
|
|
shareRemoveUsage = "[ALPHA] share remove <name>"
|
|
|
|
shareRemoveUsage = "share remove <name>"
|
|
|
|
shareListUsage = "[ALPHA] share list"
|
|
|
|
shareListUsage = "share list"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var shareCmd = &ffcli.Command{
|
|
|
|
var shareCmd = &ffcli.Command{
|
|
|
@ -34,18 +34,18 @@ var shareCmd = &ffcli.Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "add",
|
|
|
|
Name: "add",
|
|
|
|
Exec: runShareAdd,
|
|
|
|
Exec: runShareAdd,
|
|
|
|
ShortHelp: "add a share",
|
|
|
|
ShortHelp: "[ALPHA] add a share",
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "remove",
|
|
|
|
Name: "remove",
|
|
|
|
ShortHelp: "remove a share",
|
|
|
|
ShortHelp: "[ALPHA] remove a share",
|
|
|
|
Exec: runShareRemove,
|
|
|
|
Exec: runShareRemove,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "list",
|
|
|
|
Name: "list",
|
|
|
|
ShortHelp: "list current shares",
|
|
|
|
ShortHelp: "[ALPHA] list current shares",
|
|
|
|
Exec: runShareList,
|
|
|
|
Exec: runShareList,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
UsageFunc: usageFunc,
|
|
|
|
},
|
|
|
|
},
|
|
|
|