Sha256: 14b8160c6887b97944c22bfa35108edfb23f228a0724c72cc5b2e09b6873720d
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
command "list spreadsheets" do |c| c.syntax = "datapimp 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(", ") }" Datapimp::Cli.accepts_keys_for(c, :google, :dropbox) c.action do |args, options| Datapimp::Sync.google.spreadsheets.each do |sheet| puts "#{ sheet.key }\t\t#{ sheet.title }" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datapimp-1.0.1 | lib/datapimp/cli/list.rb |