Sha256: 743ee81be488771072f99d3d7764a51949b5ffd11a2073fef76f54dad60509dc

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

require "pastel"

module Inventarium
  module CLI
    class Init < Dry::CLI::Command
      desc "Create an empty service.yml file for the service"

      example [
        "                # Generate service.yml in root folder",
        "./.service_meta # Generate service.yml in '.service_meta' folder"
      ]

      def call(args: [], **)
        dir = args.first || '.'

        pastel = Pastel.new

        printf "Generating a new service.yaml\t\t"
        sleep(0.3)
        puts "[#{pastel.green('DONE')}]"

        # puts "Created a new service.yml file in '#{dir}' directory"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inventarium-0.0.1 lib/inventarium/cli/init.rb