cmd/uplink: add use - for stdout,stdin to cp help

Change-Id: Ife3a0972d1be119a73eaefc0e23407b74fe03f54
This commit is contained in:
Paul Willoughby 2022-05-26 10:24:27 -06:00
parent d916b26e0e
commit 1d97b2c855

View File

@ -103,8 +103,8 @@ func (c *cmdCp) Setup(params clingy.Parameters) {
"optional metadata for the object. Please use a single level JSON object of string to string only",
nil, clingy.Transform(parseJSON), clingy.Type("string")).(map[string]string)
c.source = params.Arg("source", "Source to copy", clingy.Transform(ulloc.Parse)).(ulloc.Location)
c.dest = params.Arg("dest", "Destination to copy", clingy.Transform(ulloc.Parse)).(ulloc.Location)
c.source = params.Arg("source", "Source to copy, use - for standard input", clingy.Transform(ulloc.Parse)).(ulloc.Location)
c.dest = params.Arg("dest", "Destination to copy, use - for standard output", clingy.Transform(ulloc.Parse)).(ulloc.Location)
}
func (c *cmdCp) Execute(ctx clingy.Context) error {