consistent usage parameters
This commit is contained in:
parent
568346ce3d
commit
c63a56bc4e
@ -667,7 +667,7 @@ func main() {
|
||||
// revNew := flag.Int("nrevs", 20, "Number of new revisions in factory branch. Indicator of broken history import")
|
||||
purgeOnly := flags.Bool("purge-only", false, "Purges package repositories on Gitea. Use with caution")
|
||||
debugGitPath := flags.String("git-path", "", "Path for temporary git directory. Only used if DebugMode")
|
||||
getMaintainers := flags.Bool("maintainer-only", false, "Get maintainers only and exit")
|
||||
getMaintainers := flags.Bool("maintainers-only", false, "Get maintainers only and exit")
|
||||
syncMaintainers := flags.Bool("sync-maintainers-only", false, "Sync maintainers to Gitea and exit")
|
||||
|
||||
if help := flags.Parse(os.Args[1:]); help == flag.ErrHelp || flags.NArg() != 2 {
|
||||
|
6
workflow-direct/links.go
Normal file
6
workflow-direct/links.go
Normal file
@ -0,0 +1,6 @@
|
||||
package workflowdirect
|
||||
|
||||
type OrgLinks struct {
|
||||
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
package main
|
||||
package workflowdirect_test
|
||||
|
||||
// TODO, like documentation :-)
|
@ -31,6 +31,7 @@ import (
|
||||
"time"
|
||||
|
||||
"src.opensuse.org/autogits/common"
|
||||
workflowdirect "src.opensuse.org/autogits/workflow-direct"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -42,6 +43,8 @@ const (
|
||||
var configuredRepos map[string][]*common.AutogitConfig
|
||||
var gitea common.Gitea
|
||||
|
||||
var orgLinks map[string]*workflowdirect.OrgLinks
|
||||
|
||||
func isConfiguredOrg(org *common.Organization) bool {
|
||||
_, found := configuredRepos[org.Username]
|
||||
return found
|
||||
|
Loading…
x
Reference in New Issue
Block a user