forked from vieter-v/vieter
Made vet happy
This commit is contained in:
parent
e9d7858380
commit
75dfc5267b
9 changed files with 6 additions and 11 deletions
|
|
@ -9,6 +9,7 @@ struct Config {
|
|||
api_key string [required]
|
||||
}
|
||||
|
||||
// cmd returns the cli submodule that handles the repos API interaction
|
||||
pub fn cmd() cli.Command {
|
||||
return cli.Command{
|
||||
name: 'repos'
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ pub:
|
|||
branch string [required]
|
||||
}
|
||||
|
||||
// read_repos reads the given JSON file & parses it as a list of Git repos
|
||||
pub fn read_repos(path string) ?[]GitRepo {
|
||||
if !os.exists(path) {
|
||||
mut f := os.create(path) ?
|
||||
|
|
@ -27,6 +28,7 @@ pub fn read_repos(path string) ?[]GitRepo {
|
|||
return res
|
||||
}
|
||||
|
||||
// write_repos writes a list of repositories back to a given file
|
||||
pub fn write_repos(path string, repos []GitRepo) ? {
|
||||
mut f := os.create(path) ?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue