lib/brief/cli/export.rb in brief-1.9.4 vs lib/brief/cli/export.rb in brief-1.9.6

- old
+ new

@@ -3,22 +3,25 @@ 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) - briefcase = Brief::Briefcase.new(root: root) + briefcase = Brief.case(true) 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