« lib/WWW/Hetzner/CLI/Cmd/PlacementGroup/Cmd/Create.pm
↑ Summary
lib/WWW/Hetzner/CLI/Cmd/Certificate/Cmd/Create.pm »
| 1 | package WWW::Hetzner::CLI::Cmd::PrimaryIp; | ||
| 2 | # ABSTRACT: Hetzner Cloud Primary IP commands | ||
| 3 | |||
| 4 | 1 | our $VERSION = '0.102'; | |
| 5 | |||
| 6 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use MooX::Cmd; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use MooX::Options protect_argv => 0, usage_string => 'USAGE: hcloud.pl primary-ip <subcommand>'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | |||
| 11 | 1 | ▶ | sub execute { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 1 | my ($self) = @_; | |
| 13 | 1 | print "Usage: hcloud.pl primary-ip <subcommand>\n\n"; | |
| 14 | 1 | print "Subcommands:\n"; | |
| 15 | 1 | print " list List all primary IPs\n"; | |
| 16 | 1 | print " describe Show primary IP details\n"; | |
| 17 | 1 | print " create Create a primary IP\n"; | |
| 18 | 1 | print " delete Delete a primary IP\n"; | |
| 19 | 1 | print " assign Assign to a server\n"; | |
| 20 | 1 | print " unassign Unassign from server\n"; | |
| 21 | } | ||
| 22 | |||
| 23 | 1 | 1; | |
| 24 | |||
| 25 | __END__ | ||