Sha256: 02d6e410e436254d768de9782d9ab9808c6302cf67a7385e58164ceba6630844

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

#!/usr/bin/env ruby

require 'commander'
require 'apidragon'
require_relative '../lib/apidragon.rb'

Commander.configure do
  program :name, 'apidragon'
  program :version, '1.4.3'
  program :description, 'CLI for automating api requests'
  program :help, 'Author', 'Isaiah Thiessen <isaiah.thiessen@telus.com>'

  command :do do |c|
    # c.syntax 'apidragon do'
    # c.description 'Runs the specified command, described in the config file.'
    c.option '--config STRING', String, 'config file path'
    c.action do |args, options|
      api = Api.new args.first, options.config
      api.go
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apidragon-1.4.3 bin/apidragon