remove unused params

This commit is contained in:
Celogeek 2024-03-03 12:13:28 +01:00
parent 8c77cb4506
commit 9015f2e8e5
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc
11 changed files with 11 additions and 11 deletions

View File

@ -13,7 +13,7 @@ type CategoriesListCommand struct {
Empty bool `short:"e" long:"empty" description:"Find empty album without any photo or sub album"`
}
func (c *CategoriesListCommand) Execute(args []string) error {
func (c *CategoriesListCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -24,7 +24,7 @@ type Info struct {
var getInfosCommand GetInfosCommand
func (c *GetInfosCommand) Execute(args []string) error {
func (c *GetInfosCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -15,7 +15,7 @@ type ImageDetailsCommand struct {
Id int `short:"i" long:"id" description:"ID of the images" required:"true"`
}
func (c *ImageDetailsCommand) Execute(args []string) error {
func (c *ImageDetailsCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -30,7 +30,7 @@ type ImagesListResult struct {
} `json:"paging"`
}
func (c *ImagesListCommand) Execute(args []string) error {
func (c *ImagesListCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -24,7 +24,7 @@ type ImagesTagCommand struct {
KeepPreviousAnswer bool `short:"K" long:"keep-previous-answer" description:"Preserve previous answer"`
}
func (c *ImagesTagCommand) Execute(args []string) error {
func (c *ImagesTagCommand) Execute([]string) error {
if c.MaxImages < 0 || c.MaxImages > 100 {
return fmt.Errorf("maxImages should be between 1 and 100")
}

View File

@ -15,7 +15,7 @@ type ImagesUploadCommand struct {
CategoryId int `short:"c" long:"category" description:"Category to upload the file"`
}
func (c *ImagesUploadCommand) Execute(args []string) error {
func (c *ImagesUploadCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -11,7 +11,7 @@ type ImagesUploadTreeCommand struct {
CategoryId int `short:"c" long:"category" description:"Category to upload the file" required:"true"`
}
func (c *ImagesUploadTreeCommand) Execute(args []string) error {
func (c *ImagesUploadTreeCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -14,7 +14,7 @@ type MethodDetailsCommand struct {
MethodName string `short:"m" long:"method-name" description:"Method name to details"`
}
func (c *MethodDetailsCommand) Execute(args []string) error {
func (c *MethodDetailsCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -57,7 +57,7 @@ type MethodDetails struct {
Parameters MethodParams `json:"params"`
}
func (c *MethodListCommand) Execute(args []string) error {
func (c *MethodListCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err

View File

@ -12,7 +12,7 @@ type SessionLoginCommand struct {
Password string `short:"p" long:"password" description:"Password" required:"true"`
}
func (c *SessionLoginCommand) Execute(args []string) error {
func (c *SessionLoginCommand) Execute([]string) error {
fmt.Printf("Login on %s...\n", c.Url)
p := piwigo.Piwigo{

View File

@ -10,7 +10,7 @@ import (
type SessionStatusCommand struct {
}
func (c *SessionStatusCommand) Execute(args []string) error {
func (c *SessionStatusCommand) Execute([]string) error {
p := piwigo.Piwigo{}
if err := p.LoadConfig(); err != nil {
return err