Skip to content

Add singular/plural aliases to resource commands#45

Merged
sjmiller609 merged 1 commit intomainfrom
hypeship/add-plural-aliases
Apr 2, 2026
Merged

Add singular/plural aliases to resource commands#45
sjmiller609 merged 1 commit intomainfrom
hypeship/add-plural-aliases

Conversation

@sjmiller609
Copy link
Copy Markdown
Contributor

@sjmiller609 sjmiller609 commented Apr 2, 2026

Summary

  • Adds plural aliases to singular resource commands (imageimages, volumevolumes, etc.)
  • Adds singular alias to resourcesresource
  • Adds builds alias to build command
  • All subcommands automatically work via either form (e.g. hypeman images list = hypeman image list)

Uses urfave/cli's built-in Aliases field — no structural changes.

Commands updated

Primary Alias
image images
volume volumes
snapshot snapshots
device devices
ingress ingresses
build builds
resources resource

Test plan

  • go build ./... passes
  • go test ./... passes

Note

Low Risk
Low risk: adds urfave/cli command Aliases for several top-level commands without changing execution paths, API calls, or data handling.

Overview
Adds singular/plural aliases for multiple top-level CLI commands so users can invoke the same subcommands via either form (e.g., image/images, volume/volumes, snapshot/snapshots, device/devices, ingress/ingresses, resources/resource, build/builds). No functional logic changes beyond expanding accepted command names via urfave/cli’s Aliases field.

Written by Cursor Bugbot for commit caff943. This will update automatically on new commits. Configure here.

Allow both singular and plural forms for all resource commands
(e.g. "hypeman images" works as alias for "hypeman image").
Subcommands inherit the alias automatically via urfave/cli.

Commands updated:
- image/images
- volume/volumes
- snapshot/snapshots
- device/devices
- ingress/ingresses
- build/builds
- resources/resource

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sjmiller609 sjmiller609 marked this pull request as ready for review April 2, 2026 20:13
@sjmiller609 sjmiller609 merged commit 415d0b5 into main Apr 2, 2026
4 checks passed
@sjmiller609 sjmiller609 deleted the hypeship/add-plural-aliases branch April 2, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant