Sha256: a940b8d4d2b86a4e323dd51ded4e49e7709ba75340bc7cbb9cf69586e124b09e
Contents?: true
Size: 870 Bytes
Versions: 1
Compression:
Stored size: 870 Bytes
Contents
# encoding: UTF-8 require 'thor' module MikutterPluginManager class CLI < Thor desc "init", "create hoge.yml" option :path, type: :string, default: File.expand_path('~/.mikutter/plugin') def init() puts 'generated plugins.yml' if MikutterPluginManager.init(options[:path]) end desc "install", "install plugin from hoge.yml" def install() puts 'installed all plugins from plugins.yml' if MikutterPluginManager.install end # desc "update", "update plugin from hoge.yml" # def update() # MikutterPluginManager.update # end # desc "export", "export plugin to hoge.yml" # def export() # MikutterPluginManager.export # end desc "require", "install one plugin" def require(target_repo, target_name = nil) MikutterPluginManager.require(target_repo, target_name) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mikutter_plugin_manager-0.1.0 | lib/mikutter_plugin_manager/cli.rb |