forked from vieter-v/vieter
Some final adjustments before merge
This commit is contained in:
parent
c656e672e2
commit
dff531d866
4 changed files with 4 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ pub fn load<T>(path string) ?T {
|
|||
|
||||
if os.exists(path) {
|
||||
// We don't use reflect here because reflect also sets any fields not
|
||||
// in the toml back to "empty", which we don't want
|
||||
// in the toml back to their zero value, which we don't want
|
||||
doc := toml.parse_file(path) ?
|
||||
|
||||
$for field in T.fields {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import git
|
|||
fn main() {
|
||||
mut app := cli.Command{
|
||||
name: 'vieter'
|
||||
description: 'Arch repository server'
|
||||
description: 'Vieter is a lightweight implementation of an Arch repository server.'
|
||||
version: '0.1.0'
|
||||
flags: [
|
||||
cli.Flag{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ pub:
|
|||
pub fn cmd() cli.Command {
|
||||
return cli.Command{
|
||||
name: 'server'
|
||||
description: 'Start the Vieter server'
|
||||
description: 'Start the Vieter server.'
|
||||
execute: fn (cmd cli.Command) ? {
|
||||
config_file := cmd.flags.get_string('config-file') ?
|
||||
conf := env.load<Config>(config_file) ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue