test
This commit is contained in:
parent
9e4c713c24
commit
4dfe2cf04e
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue