Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Tumugi::Plugin::CommandBase class #14

Open
hakobera opened this issue Mar 15, 2017 · 2 comments
Open

Introduce Tumugi::Plugin::CommandBase class #14

hakobera opened this issue Mar 15, 2017 · 2 comments
Milestone

Comments

@hakobera
Copy link
Member

hakobera commented Mar 15, 2017

to easy to implement CLI based task like followings.

class AwesomeCLITask < Tumugi::Plugin::CommandBase
  param :param1

  def run
    run_command(command)
  end
  
  def command
     # return awesome CLI command
     "awesome-cli #{param1}"
  end
end
@hakobera hakobera modified the milestone: v0.4.0 Mar 15, 2017
hakobera added a commit that referenced this issue Mar 15, 2017
to make it easy for developer to create CLI based tasks.

For #14
@hakobera hakobera changed the title Move command execution logic to common module Introduce Tumugi::Plugin::CommandBase class Mar 15, 2017
@hakobera
Copy link
Member Author

@lamanotrama What do you think of this change? Is this worth for you?

@lamanotrama
Copy link
Contributor

@hakobera Good!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants