develop #3

Merged
glenux merged 35 commits from develop into master 2024-06-02 07:08:41 +00:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 615c377623 - Show all commits

View file

@ -11,12 +11,16 @@ module DocMachine::Write
config = Config.new(parent_config)
opts.on("write", "Write content target for plan (beta)") do
opts.banner = "Usage: #{PROGRAM_NAME} scaffold [options] TARGET"
opts.banner = "Usage: #{PROGRAM_NAME} write [options] TARGET"
opts.on("-f", "--force", "Don't ask for confirmation") do
config.force = true
end
opts.on("-t", "--template TEMPLATE", "Use given template") do |template_name|
config.template_name = template_name
end
commands << ->() : Nil do
Log.debug { "before any" }
if args.size < 1

View file

@ -6,6 +6,7 @@ module DocMachine::Write
property target_directory : String = "."
property force : Bool = false
property template_name : String = ""
def initialize(@parent : DocMachine::Config)
end