Sha256: 2db079b4a731639560fb022c77a2ba53f45afb10b20bee860f79619a520efe2a
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
module Brief def self.cli_action(c, &block) c.action do |args, options| options.default(root: Brief.pwd) Brief.case = Brief::Briefcase.new(root: Pathname(options.root)) block.call(args, options) end end def self.default_cli_options(c) c.option '--root DIRECTORY', String, 'The root for the briefcase' c.option '--config FILE', String, 'Path to the config file for this briefcase' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brief-1.8.11 | lib/brief/cli/01_extensions.rb |
brief-1.8.10 | lib/brief/cli/01_extensions.rb |