Sha256: 806b2bfc1ed1ddb8e316cdfba371f9828c2bc6ac145c35c0184221ad0bcd9d29

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require 'thor'
require 'funkce/version'
require 'funkce/generators/function'

module Funkce
  class CLI < Thor
    desc 'version', 'Prints the funkce version information'
    def version
      puts "Funkce version #{Funkce::VERSION}"
    end

    desc 'function', 'Generates a function'
    def function(group, name)
      Funkce::Generators::Function.start([group, name])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
funkce-0.1.1 lib/funkce/cli.rb
funkce-0.1.0 lib/funkce/cli.rb