This commit is contained in:
Caznix 2024-07-28 19:59:32 -04:00
parent 9e4c713c24
commit 4dfe2cf04e
2 changed files with 4 additions and 4 deletions

View file

@ -5,13 +5,13 @@ fn sh(cmd string) {
print(execute_or_exit(cmd).output) print(execute_or_exit(cmd).output)
} }
sh('ls') //sh('ls')
rmdir_all('build') or {} rmdir_all('build') or {}
mkdir('build')! mkdir('build')!
result := execute('mv *.v build/') result := execute('mv *.v build/')
if result.exit_code ! /= { if result.exit_code != 0 {
println(result.output) println(result.output)
} }

View file

@ -11,8 +11,8 @@ fn main() {
name: 'Comet' name: 'Comet'
description: 'The package manager you never knew you needed' description: 'The package manager you never knew you needed'
usage: 'test' usage: 'test'
pre_execute: fn (cmd cli.Command) ! { pre_execute: fn (cmd cli.Command) != {
if initalizer.check_initalization() ! { if initalizer.check_initalization() != {
println('initalization required') println('initalization required')
} }
} }