Sha256: 27cd38556681912832bc1d9ffe43b89cb22c8738a4054c472062e0496d28c4f0
Contents?: true
Size: 849 Bytes
Versions: 1
Compression:
Stored size: 849 Bytes
Contents
#!/usr/bin/env ruby require 'commander' require 'apidragon' require_relative '../lib/apidragon.rb' Commander.configure do program :name, 'apidragon' program :version, '1.6.0' program :description, 'CLI for automating api requests' program :help, 'Author', 'Isaiah Thiessen <isaiah.thiessen@telus.com>' command :do do |c| c.syntax = 'apidragon do [options]' c.description = 'Run "apidragon do [command]" to run the specified "command" defined in the config file.' c.option '--config STRING', String, 'config file path' c.option '--username STRING', String, 'pass your api username as an option' c.option '--password STRING', String, 'pass your api password as an option' c.action do |args, options| api = Api.new args.first, options.config, options.username, options.password api.go end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apidragon-1.6.0 | bin/apidragon |