fixes docusaurus

This commit is contained in:
2025-02-19 09:44:03 +03:00
parent 49e2146152
commit 24eb709293
14 changed files with 233 additions and 188 deletions

View File

@@ -13,7 +13,7 @@ pub mut:
delete bool // do we want to delete the destination
ignore []string // arguments to ignore e.g. ['*.pyc','*.bak']
ignore_default bool = true // if set will ignore a common set
debug bool = true
debug bool
fast_rsync bool
sshkey string
}
@@ -37,8 +37,8 @@ pub fn rsync(args_ RsyncArgs) ! {
get(args.source)
}
cmdoptions := rsync_cmd_options(args)!
$if debug {
console.print_debug(' rsync command:\nrsync ${cmdoptions}')
if args.debug {
console.print_debug('rsync ${cmdoptions}')
}
r := os.execute('which rsync')
if r.exit_code > 0 {

View File

@@ -10,7 +10,7 @@ pub fn template_write(template_ string, dest string, overwrite bool) ! {
if overwrite || !(os.exists(dest)) {
mut p := get_file(path: dest, create: true)!
$if debug {
console.print_header(" write template to '${dest}'")
console.print_debug(" write template to '${dest}'")
}
p.write(template)!
}