feat(build): added support for 'url' kind

This commit is contained in:
Jef Roosens 2022-06-17 14:31:34 +02:00
parent bd07964509
commit 8f91c1fde5
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 107 additions and 14 deletions

View file

@ -123,11 +123,11 @@ pub fn cmd() cli.Command {
name: 'edit'
required_args: 1
usage: 'id'
description: 'Edit the Git repository target that matches the given id.'
description: 'Edit the target that matches the given id.'
flags: [
cli.Flag{
name: 'url'
description: 'URL of the Git repository.'
description: 'URL value. Meaning depends on kind of target.'
flag: cli.FlagType.string
},
cli.Flag{
@ -211,7 +211,6 @@ fn add(conf Config, t &NewTarget) ? {
// remove removes a repository from the server's list.
fn remove(conf Config, id string) ? {
// id, _ := get_repo_by_prefix(conf, id_prefix) ?
id_int := id.int()
if id_int != 0 {