cmd/uplink: improve usage for uplink subcommands
Positional args were missing from the usage strings. Change-Id: I8458739577ff8d2b1c0503303023569da3d32806
This commit is contained in:
parent
5a1838bc28
commit
746c07cb91
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
addCmd(&cobra.Command{
|
addCmd(&cobra.Command{
|
||||||
Use: "cat",
|
Use: "cat sj://BUCKET/KEY",
|
||||||
Short: "Copies a Storj object to standard out",
|
Short: "Copies a Storj object to standard out",
|
||||||
RunE: catMain,
|
RunE: catMain,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -30,7 +30,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
cpCmd := addCmd(&cobra.Command{
|
cpCmd := addCmd(&cobra.Command{
|
||||||
Use: "cp",
|
Use: "cp SOURCE DESTINATION",
|
||||||
Short: "Copies a local file or Storj object to another location locally or in Storj",
|
Short: "Copies a local file or Storj object to another location locally or in Storj",
|
||||||
RunE: copyMain,
|
RunE: copyMain,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -23,7 +23,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
lsCmd := addCmd(&cobra.Command{
|
lsCmd := addCmd(&cobra.Command{
|
||||||
Use: "ls",
|
Use: "ls [sj://BUCKET[/PREFIX]]",
|
||||||
Short: "List objects and prefixes or all buckets",
|
Short: "List objects and prefixes or all buckets",
|
||||||
RunE: list,
|
RunE: list,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
addCmd(&cobra.Command{
|
addCmd(&cobra.Command{
|
||||||
Use: "mb",
|
Use: "mb sj://BUCKET",
|
||||||
Short: "Create a new bucket",
|
Short: "Create a new bucket",
|
||||||
RunE: makeBucket,
|
RunE: makeBucket,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
addCmd(&cobra.Command{
|
addCmd(&cobra.Command{
|
||||||
Use: "put",
|
Use: "put sj://BUCKET/KEY",
|
||||||
Short: "Copies data from standard in to a Storj object",
|
Short: "Copies data from standard in to a Storj object",
|
||||||
RunE: putMain,
|
RunE: putMain,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
addCmd(&cobra.Command{
|
addCmd(&cobra.Command{
|
||||||
Use: "rb",
|
Use: "rb sj://BUCKET",
|
||||||
Short: "Remove an empty bucket",
|
Short: "Remove an empty bucket",
|
||||||
RunE: deleteBucket,
|
RunE: deleteBucket,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -20,7 +20,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rmCmd := addCmd(&cobra.Command{
|
rmCmd := addCmd(&cobra.Command{
|
||||||
Use: "rm",
|
Use: "rm sj://BUCKET/KEY",
|
||||||
Short: "Delete an object",
|
Short: "Delete an object",
|
||||||
RunE: deleteObject,
|
RunE: deleteObject,
|
||||||
}, RootCmd)
|
}, RootCmd)
|
||||||
|
@ -41,7 +41,7 @@ func init() {
|
|||||||
// above, and addCmd adds a whole lot more than we want.
|
// above, and addCmd adds a whole lot more than we want.
|
||||||
|
|
||||||
shareCmd := &cobra.Command{
|
shareCmd := &cobra.Command{
|
||||||
Use: "share [allowed-path-prefix]...",
|
Use: "share [ALLOWED_PATH_PREFIX]...",
|
||||||
Short: "Shares restricted access to objects.",
|
Short: "Shares restricted access to objects.",
|
||||||
RunE: shareMain,
|
RunE: shareMain,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user