Sha256: 41e4c613f2c4b77daac6104fe94d109ace1b3322bfc95509fb08a913b172fe82
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
# frozen_string_literal: true module Appifier module CLI module Subcommands class Templates < ::Thor def initialize(*args) super @output = Carioca::Registry.get.get_service name: :output @finisher = Carioca::Registry.get.get_service name: :finisher end # Thor method : list availables templates in user bundle desc 'ls', 'list templates availables in user bundle' def ls Appifier::Components::Templates::list @finisher.terminate exit_case: :error_exit end # Thor method : remove a template from user bundle desc 'rm', 'rm templates from user bundle' def rm(template) begin Appifier::Components::Templates::rm(template) rescue RuntimeError => e @output.error e.message @finisher.terminate exit_case: :error_exit end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appifier-0.1.2 | lib/appifier/cli/templates.rb |