Sha256: 19636f2be8c0cec9d5fd0a315b7a2eec26d8e7ecee205dcc3ac80f8fa8ec8a2c
Contents?: true
Size: 849 Bytes
Versions: 4
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.5.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
apidragon-1.5.4 | bin/apidragon |
apidragon-1.5.3 | bin/apidragon |
apidragon-1.5.2 | bin/apidragon |
apidragon-1.5.1 | bin/apidragon |