Updatd config files; ran formatter

This commit is contained in:
Jef Roosens 2022-04-06 16:57:27 +02:00
parent 5b919ceeae
commit b90e6cf6b4
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
9 changed files with 13 additions and 68 deletions

View file

@ -14,4 +14,3 @@ pub fn cmd() cli.Command {
}
}
}

View file

@ -91,5 +91,4 @@ pub fn load<T>() ?T {
}
pub fn load_with_file<T>(path string) ?T {
}

View file

@ -14,15 +14,15 @@ pub fn cmd() cli.Command {
name: 'repos'
description: 'Interact with the repos API.'
commands: [
cli.Command{
name: 'list'
description: 'List the current repos.'
execute: fn (cmd cli.Command) ? {
conf := env.load<Config>() ?
cli.Command{
name: 'list'
description: 'List the current repos.'
execute: fn (cmd cli.Command) ? {
conf := env.load<Config>() ?
list(conf) ?
}
}
list(conf) ?
}
},
]
}
}

View file

@ -37,4 +37,3 @@ pub fn write_repos(path string, repos []GitRepo) ? {
value := json.encode(repos)
f.write_string(value) ?
}

View file

@ -21,12 +21,12 @@ fn main() {
description: 'Location of Vieter config file; defaults to ~/.vieterrc.'
global: true
default_value: [os.expand_tilde_to_home('~/.vieterrc')]
}
},
]
commands: [
server.cmd(),
build.cmd(),
git.cmd()
git.cmd(),
]
}

View file

@ -10,7 +10,7 @@ pub fn cmd() cli.Command {
execute: fn (cmd cli.Command) ? {
conf := env.load<env.ServerConfig>() ?
server.server(conf) ?
server(conf) ?
}
}
}