mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-24 17:52:36 +02:00
remove unused params
This commit is contained in:
parent
8c77cb4506
commit
9015f2e8e5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user