Class: Metanorma::Cli::Commands::TemplateRepo

Inherits:
ThorWithConfig show all
Defined in:
lib/metanorma/cli/commands/template_repo.rb

Instance Method Summary collapse

Instance Method Details

#add(name, source) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/metanorma/cli/commands/template_repo.rb', line 11

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