Sha256: 31c671a565bb6b417b34256d37702da1fba57e1d622416066f5b9e7ccf946d90

Contents?: true

Size: 867 Bytes

Versions: 1

Compression:

Stored size: 867 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::PROJECT_NAME} 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.is_linux?
AgileUtils::Helper.is_osx?
AgileUtils::Helper.make_list
AgileUtils::Helper.shell
AgileUtils::Helper.time
AgileUtils::Helper.uname

# File and related methods
AgileUtils::FileUtil.find()
AgileUtils::FileUtils.delete()
AgileUtils::FileUtils.gunzip()
AgileUtils::FileUtils.tar_gzip_files()
      EOS
    end

    default_task :usage
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
agile_utils-0.1.2 lib/agile_utils/cli.rb