Project

General

Profile

Revision c06f1783

Added by Thomas McKay over 6 years ago

fixes #15743 - import and export of subscriptions one-per-line

View differences:

lib/hammer_cli_csv/base.rb
74 74
                                       })
75 75
      end
76 76

  
77
      option_export? ? export : import
77
      if option_export?
78
        if option_file
79
          CSV.open(option_file, 'wb', {:force_quotes => false}) do |csv|
80
            export csv
81
          end
82
        else
83
          CSV do |csv|
84
            export csv
85
          end
86
        end
87
      else
88
        import
89
      end
78 90
      HammerCLI::EX_OK
79 91
    end
80 92

  

Also available in: Unified diff