Skip to content

Commit aeb2de7

Browse files
authored
feat(baremetal): add GetDefaultPartitioningRequest (scaleway#4145)
1 parent 02c8bd0 commit aeb2de7

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Allows to customize the partitioning schemas of your servers (available on some offers and OSs).
4+
5+
USAGE:
6+
scw baremetal partitioning-schemas
7+
8+
FLAGS:
9+
-h, --help help for partitioning-schemas
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-baremetal-usage.golden

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ USAGE:
66
scw baremetal <command>
77

88
AVAILABLE COMMANDS:
9-
bmc Baseboard Management Controller (BMC) management commands
10-
offer Server offer management commands
11-
options Server options management commands
12-
os Operating System (OS) management commands
13-
private-network Private Network management command
14-
server Server management commands
15-
settings Settings management commands
9+
bmc Baseboard Management Controller (BMC) management commands
10+
offer Server offer management commands
11+
options Server options management commands
12+
os Operating System (OS) management commands
13+
partitioning-schemas Partitioning-schemas management commands
14+
private-network Private Network management command
15+
server Server management commands
16+
settings Settings management commands
1617

1718
FLAGS:
1819
-h, --help help for baremetal

docs/commands/baremetal.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Elastic Metal API.
1717
- [Operating System (OS) management commands](#operating-system-(os)-management-commands)
1818
- [Get OS with an ID](#get-os-with-an-id)
1919
- [List available OSes](#list-available-oses)
20+
- [Partitioning-schemas management commands](#partitioning-schemas-management-commands)
2021
- [Private Network management command](#private-network-management-command)
2122
- [Add a server to a Private Network](#add-a-server-to-a-private-network)
2223
- [Delete a Private Network](#delete-a-private-network)
@@ -376,6 +377,20 @@ scw baremetal os list [arg=value ...]
376377

377378

378379

380+
## Partitioning-schemas management commands
381+
382+
Allows to customize the partitioning schemas of your servers (available on some offers and OSs).
383+
384+
Allows to customize the partitioning schemas of your servers (available on some offers and OSs).
385+
386+
**Usage:**
387+
388+
```
389+
scw baremetal partitioning-schemas
390+
```
391+
392+
393+
379394
## Private Network management command
380395

381396
A Private Network allows you to interconnect your resources

internal/namespaces/baremetal/v1/baremetal_cli.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func GetGeneratedCommands() *core.Commands {
2626
baremetalBmc(),
2727
baremetalOptions(),
2828
baremetalSettings(),
29+
baremetalPartitioningSchemas(),
2930
baremetalPrivateNetwork(),
3031
baremetalServerList(),
3132
baremetalServerGet(),
@@ -125,6 +126,15 @@ func baremetalSettings() *core.Command {
125126
}
126127
}
127128

129+
func baremetalPartitioningSchemas() *core.Command {
130+
return &core.Command{
131+
Short: `Partitioning-schemas management commands`,
132+
Long: `Allows to customize the partitioning schemas of your servers (available on some offers and OSs).`,
133+
Namespace: "baremetal",
134+
Resource: "partitioning-schemas",
135+
}
136+
}
137+
128138
func baremetalPrivateNetwork() *core.Command {
129139
return &core.Command{
130140
Short: `Private Network management command`,

0 commit comments

Comments
 (0)