Skip to content

Commit 7116090

Browse files
committed
fix: file & naming incosistencies
1 parent 2b7e56d commit 7116090

File tree

15 files changed

+12
-12
lines changed

15 files changed

+12
-12
lines changed

cmd/vps/actions/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ action, such as the action name, timestamp, and status.`,
2828
}
2929

3030
func init() {
31-
ListCmd.Flags().IntP("page", "", -1, "Page number")
31+
ListCmd.Flags().IntP("page", "", 1, "Page number")
3232
}
3333

3434
func listRequestParameters(cmd *cobra.Command) *client.VPSGetActionListV1Params {

cmd/vps/backups/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var ListCmd = &cobra.Command{
2626
}
2727

2828
func init() {
29-
ListCmd.Flags().IntP("page", "", -1, "Page number")
29+
ListCmd.Flags().IntP("page", "", 1, "Page number")
3030
}
3131

3232
func backupListRequestParameters(cmd *cobra.Command) *client.VPSGetBackupListV1Params {

cmd/vps/firewall/firewall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This firewall applies rules at the network level, so it will take precedence ove
1515
func init() {
1616
GroupCmd.AddCommand(ActivateCmd)
1717
GroupCmd.AddCommand(DeactivateCmd)
18-
GroupCmd.AddCommand(ItemCmd)
18+
GroupCmd.AddCommand(GetCmd)
1919
GroupCmd.AddCommand(DeleteCmd)
2020
GroupCmd.AddCommand(ListCmd)
2121
GroupCmd.AddCommand(CreateCmd)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"log"
1010
)
1111

12-
var ItemCmd = &cobra.Command{
12+
var GetCmd = &cobra.Command{
1313
Use: "get <firewall ID>",
1414
Short: "Get firewall",
1515
Long: `This endpoint retrieves firewall by its ID and rules associated with it.`,

cmd/vps/firewall/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var ListCmd = &cobra.Command{
2525
}
2626

2727
func init() {
28-
ListCmd.Flags().IntP("page", "", -1, "Page number")
28+
ListCmd.Flags().IntP("page", "", 1, "Page number")
2929
}
3030

3131
func firewallListRequestParameters(cmd *cobra.Command) *client.VPSGetFirewallListV1Params {

cmd/vps/post_install_scripts/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var ListCmd = &cobra.Command{
2525
}
2626

2727
func init() {
28-
ListCmd.Flags().IntP("page", "", -1, "Page number")
28+
ListCmd.Flags().IntP("page", "", 1, "Page number")
2929
}
3030

3131
func listRequestParameters(cmd *cobra.Command) *client.VPSGetPostInstallScriptListV1Params {

cmd/vps/public_keys/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var CreateCmd = &cobra.Command{
1414
Short: "Create new public key",
1515
Long: `This endpoint allows you to add a new public key to your account, which can then be attached to virtual machine instances for secure access.`,
1616
Run: func(cmd *cobra.Command, args []string) {
17-
r, err := api.Request().VPSCreateNewPublicKeyV1WithResponse(context.TODO(), publickKeyCreateRequest(cmd, args))
17+
r, err := api.Request().VPSCreateNewPublicKeyV1WithResponse(context.TODO(), publicKeyCreateRequest(cmd, args))
1818
if err != nil {
1919
log.Fatal(err)
2020
}
@@ -31,7 +31,7 @@ func init() {
3131
CreateCmd.MarkFlagRequired("key")
3232
}
3333

34-
func publickKeyCreateRequest(cmd *cobra.Command, args []string) client.VPSCreateNewPublicKeyV1JSONRequestBody {
34+
func publicKeyCreateRequest(cmd *cobra.Command, args []string) client.VPSCreateNewPublicKeyV1JSONRequestBody {
3535
name, _ := cmd.Flags().GetString("name")
3636
key, _ := cmd.Flags().GetString("key")
3737

cmd/vps/public_keys/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var ListCmd = &cobra.Command{
2525
}
2626

2727
func init() {
28-
ListCmd.Flags().IntP("page", "", -1, "Page number")
28+
ListCmd.Flags().IntP("page", "", 1, "Page number")
2929
}
3030

3131
func listRequestParameters(cmd *cobra.Command) *client.VPSGetPublicKeyListV1Params {

0 commit comments

Comments
 (0)