Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS-8498 Want 'piadm destroy' as an alias for 'piadm remove' #1080

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jasonbking
Copy link
Contributor

For those used to beadm(8), adds an alias destroy for remove.

I've tested it by deleting a PI (verified using piadm list before and after deletion.

Copy link
Contributor

@danmcd danmcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry for not catching this 1st time around. I'm also sorry for foisting the re-sorting of things too.

@@ -1544,7 +1545,7 @@ case $cmd in
list "$@"
;;

remove )
destroy | remove )
privcheck remove
standalone_only remove
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change standalone_only remove to standalone_only "$cmd" please.

@@ -12,7 +12,7 @@ piadm(8) -- Manage SmartOS Platform Images
piadm bootable -e [ -i <source> ] <ZFS-pool-name>
piadm install <source> [ZFS-pool-name]
piadm list [ZFS-pool-name]
piadm remove <PI-stamp> [ZFS-pool-name]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because "destroy" realphabetizes things, you'll have to re-sort this list.

@@ -256,12 +256,16 @@ piadm(8) -- Manage SmartOS Platform Images
Lists the available platform images (and boot images) on bootable
pools.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this section needing to move.

@@ -54,7 +55,7 @@ usage() {
eecho " piadm bootable [-d] [-e [-i <source>]] [-r] [ZFS-pool-name]"
eecho " piadm install <source> [ZFS-pool-name]"
eecho " piadm list <-H> [ZFS-pool-name]"
eecho " piadm remove <PI-stamp> [ZFS-pool-name]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And same with the help message.

@danmcd danmcd changed the title Add destroy alias for piadm(8) OS-8498 Want 'piadm destroy' as an alias for 'piadm remove' Jan 29, 2024
@danmcd
Copy link
Contributor

danmcd commented Jan 29, 2024

We'd filed a bug because of this PR. I'm trying to link them together now.

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.

None yet

2 participants