Sha256: 2b41d07ffb872891e04caec6a4d77dcea9d31286a9d2fb118f8210a0cfbcba13
Contents?: true
Size: 742 Bytes
Versions: 5
Compression:
Stored size: 742 Bytes
Contents
class Nachos::CLI < Thor attr_reader :config, :main class_option :dry_run, :type => :boolean, :default => false, :desc => "If specified, the converter will just print the commands and not actually execute them" def initialize(*args) @main = Nachos::Main.new(self) super end desc "info", "Displays current setup for Nachos" def info shell.say main.info end desc "watched", "Display your watched repos on Github" def watched main.watched.each do |repo| shell.say "#{repo.owner}/#{repo.name} - #{repo.description}" end end desc "sync", "Sync repositories" def sync shell.say main.github_summary main.sync end private def dry_run? options[:dry_run] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nachos-0.0.6 | lib/nachos/cli.rb |
nachos-0.0.5 | lib/nachos/cli.rb |
nachos-0.0.4 | lib/nachos/cli.rb |
nachos-0.0.3 | lib/nachos/cli.rb |
nachos-0.0.2 | lib/nachos/cli.rb |