add virt
This commit is contained in:
21
aiprompts/vshell example script instructions.md
Normal file
21
aiprompts/vshell example script instructions.md
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# how to run the vshell example scripts
|
||||
|
||||
this is how we want example scripts to be, see the first line
|
||||
|
||||
```vlang
|
||||
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.crystallib.installers.sysadmintools.daguserver
|
||||
|
||||
mut ds := daguserver.get()!
|
||||
|
||||
println(ds)
|
||||
```
|
||||
|
||||
the files are in ~/code/github/freeflowuniverse/crystallib/examples for crystallib
|
||||
|
||||
## important instructions
|
||||
|
||||
- never use fn main() in a .vsh script
|
||||
|
||||
Reference in New Issue
Block a user