Sha256: a43144dd04f3d308169b1c6559dc588447a5581db4f4fbfbcc1f6aa5812e7389
Contents?: true
Size: 645 Bytes
Versions: 193
Compression:
Stored size: 645 Bytes
Contents
require "metanorma/cli/template_repo" require "metanorma/cli/thor_with_config" module Metanorma module Cli module Commands class TemplateRepo < ThorWithConfig desc "add NAME SOURCE", "Add new metanorma templates repository" option :overwrite, aliases: "-y", type: :boolean, desc: "Overwrite existing template" def add(name, source) Metanorma::Cli::TemplateRepo.add(name, source, options) UI.say("Template repo: #{name} has been added successfully") rescue Errors::DuplicateTemplateError UI.error("Duplicate metanorma template") end end end end end
Version data entries
193 entries across 193 versions & 1 rubygems