forked from vieter-v/vieter
Updatd config files; ran formatter
This commit is contained in:
parent
5b919ceeae
commit
b90e6cf6b4
9 changed files with 13 additions and 68 deletions
|
|
@ -14,4 +14,3 @@ pub fn cmd() cli.Command {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,5 +91,4 @@ pub fn load<T>() ?T {
|
|||
}
|
||||
|
||||
pub fn load_with_file<T>(path string) ?T {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) ?
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,4 +37,3 @@ pub fn write_repos(path string, repos []GitRepo) ? {
|
|||
value := json.encode(repos)
|
||||
f.write_string(value) ?
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ pub fn cmd() cli.Command {
|
|||
execute: fn (cmd cli.Command) ? {
|
||||
conf := env.load<env.ServerConfig>() ?
|
||||
|
||||
server.server(conf) ?
|
||||
server(conf) ?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue