fix: name team repository arguments and release assets consistently

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 10:06:09 +02:00
1 parent 43f35fdaed
commit 2ec16292f5
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -658,7 +658,7 @@ func (a *application) teamRepoAccessCommand(grant bool) *cobra.Command {
delete(annotations, "tea.confirm")
}
return &cobra.Command{
Use: verb + " <team> <repo>...", Short: short, Args: usageArgs(cobra.MinimumNArgs(2)), Example: example, Annotations: annotations,
Use: verb + " <team> <repository>...", Short: short, Args: usageArgs(cobra.MinimumNArgs(2)), Example: example, Annotations: annotations,
Long: short + ` of its organization. Name the repositories alone, such as service, or as ORG/NAME;
repositories of other owners cannot be granted to a team.`,
ValidArgsFunction: a.completeTeamThen(func(ctx context.Context, t target, team services.Team) ([]cobra.Completion, error) {
@@ -671,7 +671,7 @@ repositories of other owners cannot be granted to a team.`,
}),
RunE: func(cmd *cobra.Command, args []string) error {
if cmd.Flags().Changed("repo") {
return clierr.Wrap(clierr.Usage, fmt.Errorf("--repo is not used by %s; name the repositories as arguments: %s <team> <repo>", cmd.CommandPath(), cmd.CommandPath()))
return clierr.Wrap(clierr.Usage, fmt.Errorf("--repo is not used by %s; name the repositories as arguments: %s <team> <repository>", cmd.CommandPath(), cmd.CommandPath()))
}
_, service, team, err := a.team(cmd, args[0])
if err != nil {