commander icon indicating copy to clipboard operation
commander copied to clipboard

Command aliases

Open phortx opened this issue 6 years ago • 1 comments

It would be nice if we could define aliases for commands. For example like this:

  cmd.commands.add do |cmd|
      cmd.use = "console"
      cmd.alias = "c"
      cmd.short = "Runs a console"
      cmd.long = cmd.short

      cmd.run do |options, arguments|
        # ...
      end
    end

phortx avatar Jul 23 '17 05:07 phortx

Thanks for the suggestion. This'd be a nice addition. I'll look into this whenever I get around to it. Of course, anyone else is free to submit a PR if they want support for this sooner rather than later. 👍

mrrooijen avatar Jul 23 '17 10:07 mrrooijen