lib/datapimp/cli/list.rb in datapimp-1.2.1 vs lib/datapimp/cli/list.rb in datapimp-1.2.2
- old
+ new
@@ -1,7 +1,7 @@
command "list spreadsheets" do |c|
- c.syntax = "datapimp list spreadsheets"
+ c.syntax = "#{$datapimp_cli} list spreadsheets"
c.description = "list the spreadsheets which can be used as datasources"
c.option '--type TYPE', String, "What type of source data is this? #{ Datapimp::Sync.data_source_types.join(", ") }"
c.option '--filter PATTERN', String, "Filter the titles by the specified pattern"
@@ -19,17 +19,17 @@
lines.each {|l| puts(l) }
if lines.length > 0
puts "\n\nExample:"
puts "====="
- puts "datapimp sync data #{ lines.first.split(/\t/).first } --type google-spreadsheet"
+ puts "#{$datapimp_cli} sync data #{ lines.first.split(/\t/).first } --type google-spreadsheet"
puts "\n\n"
end
end
end
command "list folders" do |c|
- c.syntax= "datapimp list folders [OPTIONS]"
+ c.syntax= "#{$datapimp_cli} list folders [OPTIONS]"
c.description= "lists folders in a remote service"
c.option '--type SERVICE', String, 'Which service to search: dropbox, google, amazon'
c.option '--filter PATTERN', nil, 'Filter the results matching PATTERN'