Sha256: 0f2fe402feb7fdb62d8e098f048c33d424cbcff044a22d342b26d32e36475d87
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
command 'export' do |c| c.syntax = 'brief export PATH [OPTIONS]' c.description = 'export the briefcase found in PATH' c.option '--presenter-format FORMAT', String, 'Which presenter to use?' c.option '--include-schema', 'Include schema information' c.option '--include-models', 'Include individual models as well' c.option '--include-content', 'Gets passed to the model renderers if present' c.option '--include-rendered', 'Gets passed to the model renderers if present' c.option '--include-urls', 'Gets passed to the model renderers if present' c.action do |args, options| options.default(presenter_format: "full_export") root = Pathname(args.first) briefcase = Brief::Briefcase.new(root: root) briefcase.present(options.presenter_format, rendered: options.include_rendered, content: options.include_content, urls: options.include_urls, schema: options.include_schema, models: options.include_models) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brief-1.9.4 | lib/brief/cli/export.rb |
brief-1.9.3 | lib/brief/cli/export.rb |
brief-1.9.2 | lib/brief/cli/export.rb |
brief-1.9.1 | lib/brief/cli/export.rb |