consistent usage parameters

This commit is contained in:
Adam Majer 2025-03-07 16:12:48 +01:00
parent 568346ce3d
commit c63a56bc4e
4 changed files with 11 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,6 @@
package workflowdirect
type OrgLinks struct {
}

View File

@ -1,3 +1,3 @@
package main
package workflowdirect_test
// TODO, like documentation :-)

View File

@ -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