Skip to content

Commit

Permalink
adding alias for remotecopy
Browse files Browse the repository at this point in the history
  • Loading branch information
justone committed Jan 22, 2017
1 parent 1ba4b7f commit 4abebbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion remotecopy.go
Expand Up @@ -44,10 +44,16 @@ func (x *RemoteCopyCommand) Execute(args []string) error {
} }


func init() { func init() {
parser.AddCommand("remotecopy", cmd, err := parser.AddCommand("remotecopy",
"Remote copy.", "Remote copy.",
"", "",
&remoteCopyCommand) &remoteCopyCommand)

cmd.Aliases = append(cmd.Aliases, "rc")

if err != nil {
fmt.Println(err)
}
} }


func runRemoteCopy(conn *pmb.Connection, id string, data string) error { func runRemoteCopy(conn *pmb.Connection, id string, data string) error {
Expand Down

0 comments on commit 4abebbd

Please sign in to comment.