...
This commit is contained in:
20
examples/web/site/site_example.vsh
Executable file
20
examples/web/site/site_example.vsh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cg -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import os
|
||||
import incubaid.herolib.develop.gittools
|
||||
import incubaid.herolib.web.site
|
||||
import incubaid.herolib.core.playcmds
|
||||
|
||||
url := 'https://git.ourworld.tf/tfgrid/docs_tfgrid4/src/branch/main/ebooks/tech'
|
||||
|
||||
mysitepath := gittools.path(
|
||||
// git_pull: true
|
||||
// git_reset: true
|
||||
git_url: url
|
||||
// git_root: '/tmp/code'
|
||||
)!
|
||||
|
||||
playcmds.run(heroscript_path: mysitepath.path)!
|
||||
|
||||
mut mysite := site.get(name: 'tfgrid_tech')!
|
||||
println(mysite)
|
||||
Reference in New Issue
Block a user