Sha256: 383179d2ab1ab42ec42d9736f9b7a992c7e5bc53a515c3404a6ec395240242f2

Contents?: true

Size: 816 Bytes

Versions: 3

Compression:

Stored size: 816 Bytes

Contents

require "thor"
require_relative "../agile_utils"
module AgileUtils
  class CLI < Thor
    desc "main", "Main entry point"
    def main
      opts = options.symbolize_keys
      if opts[:version]
        puts "You are using AgileUtils version #{AgileUtils::VERSION}"
        exit
      end
    end
    desc "usage", "Display help screen"
    def usage
      puts <<-EOS
# List of available APIs
require 'agile_utils'
include AgileUtils

# General methods
AgileUtils::Helper.capture
AgileUtils::Helper.make_list
AgileUtils::Helper.shell
AgileUtils::Helper.linux?
AgileUtils::Helper.osx?
AgileUtils::Helper.time
AgileUtils::Helper.uname
AgileUtils::FileUtil.find()
AgileUtils::FileUtils.delete()
AgileUtils::FileUtils.gunzip()
AgileUtils::FileUtils.tar_gzip_files()
      EOS
    end

    default_task :usage
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
agile_utils-0.1.5 lib/agile_utils/cli.rb
agile_utils-0.1.4 lib/agile_utils/cli.rb
agile_utils-0.1.3 lib/agile_utils/cli.rb