Sha256: 1d3d7edbd267bb0bc6dfd5ae368859e2614de12d2fcbdb49f8b1793363c08fa4

Contents?: true

Size: 1.49 KB

Versions: 32

Compression:

Stored size: 1.49 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-data', 'Gets passed to the model renderers if present'
  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-attachments', '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 || Brief.pwd))

    briefcase = Brief.case = Brief::Briefcase.new(root: Pathname(args.first || options.root))

    briefcase.present(options.presenter_format, rendered: options.include_rendered,
                                                content: options.include_content,
                                                urls: options.include_urls,
                                                schema: options.include_schema,
                                                data: options.include_data,
                                                attachments: options.include_attachments,
                                                models: options.include_models)

  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
brief-1.14.1 lib/brief/cli/export.rb
brief-1.14.0 lib/brief/cli/export.rb
brief-1.13.2 lib/brief/cli/export.rb
brief-1.13.1 lib/brief/cli/export.rb
brief-1.12.9 lib/brief/cli/export.rb
brief-1.12.8 lib/brief/cli/export.rb
brief-1.12.7 lib/brief/cli/export.rb
brief-1.12.6 lib/brief/cli/export.rb
brief-1.12.5 lib/brief/cli/export.rb
brief-1.12.4 lib/brief/cli/export.rb
brief-1.12.3 lib/brief/cli/export.rb
brief-1.12.2 lib/brief/cli/export.rb
brief-1.12.1 lib/brief/cli/export.rb
brief-1.12.0 lib/brief/cli/export.rb
brief-1.11.10 lib/brief/cli/export.rb
brief-1.11.9 lib/brief/cli/export.rb
brief-1.11.8 lib/brief/cli/export.rb
brief-1.11.7 lib/brief/cli/export.rb
brief-1.11.6 lib/brief/cli/export.rb
brief-1.11.5 lib/brief/cli/export.rb