lib/brief/cli/export.rb in brief-1.9.6 vs lib/brief/cli/export.rb in brief-1.9.7
- old
+ new
@@ -10,12 +10,13 @@
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")
+ options.default(presenter_format: "full_export", root: Pathname(args.first || Brief.pwd))
- briefcase = Brief.case(true)
+ 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,