первичная итерация генератора из aur пакетов
Some checks failed
Update alr-git / changelog (push) Failing after 25s

This commit is contained in:
2025-08-21 18:44:43 +03:00
parent 07187da423
commit 7cb1bc9548
4 changed files with 824 additions and 16 deletions

23
gen.go
View File

@@ -61,6 +61,29 @@ func GenCmd() *cli.Command {
})
},
},
{
Name: "aur",
Usage: gotext.Get("Generate a ALR script for an AUR package"),
Flags: []cli.Flag{
&cli.StringFlag{
Name: "name",
Aliases: []string{"n"},
Required: true,
Usage: gotext.Get("Name of the AUR package"),
},
&cli.StringFlag{
Name: "version",
Aliases: []string{"v"},
Usage: gotext.Get("Version of the package (optional, uses latest if not specified)"),
},
},
Action: func(c *cli.Context) error {
return gen.AUR(os.Stdout, gen.AUROptions{
Name: c.String("name"),
Version: c.String("version"),
})
},
},
},
}
}