cmd/suggestions.go
changeset 265 05c40b36d3b2
parent 239 605a00e9d1ab
child 268 4dd196a4ee7c
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
     1 // Copyright © 2018 Mikael Berthe <mikael@lilotux.net>
     1 // Copyright © 2018-2023 Mikael Berthe <mikael@lilotux.net>
     2 //
     2 //
     3 // Licensed under the MIT license.
     3 // Licensed under the MIT license.
     4 // Please see the LICENSE file is this directory.
     4 // Please see the LICENSE file is this directory.
     5 
     5 
     6 package cmd
     6 package cmd
     9 	"os"
     9 	"os"
    10 
    10 
    11 	"github.com/pkg/errors"
    11 	"github.com/pkg/errors"
    12 	"github.com/spf13/cobra"
    12 	"github.com/spf13/cobra"
    13 
    13 
    14 	"github.com/McKael/madon/v2"
    14 	"github.com/McKael/madon/v3"
    15 )
    15 )
    16 
    16 
    17 var suggestionsOpts struct {
    17 var suggestionsOpts struct {
    18 	accountID  int64
    18 	accountID  int64
    19 	accountIDs string
    19 	accountIDs string
    21 	//limit uint
    21 	//limit uint
    22 	keep uint
    22 	keep uint
    23 	//all bool
    23 	//all bool
    24 }
    24 }
    25 
    25 
    26 //suggestionsCmd represents the suggestions command
    26 // suggestionsCmd represents the suggestions command
    27 var suggestionsCmd = &cobra.Command{
    27 var suggestionsCmd = &cobra.Command{
    28 	Use:     "suggestions",
    28 	Use:     "suggestions",
    29 	Aliases: []string{"suggestion"},
    29 	Aliases: []string{"suggestion"},
    30 	Short:   "Display and remove the follow suggestions",
    30 	Short:   "Display and remove the follow suggestions",
    31 	RunE:    suggestionsGetRunE, // Defaults to list
    31 	RunE:    suggestionsGetRunE, // Defaults to list