amo/cmd/amocli/getcom.go

35 lines
654 B
Go
Raw Normal View History

package main
import "surdeus.su/core/amo"
import "surdeus.su/core/ss/urlenc"
import "surdeus.su/core/cli/mtool"
2024-06-05 00:08:54 +03:00
//import "encoding/json"
//import "strconv"
//import "log"
//import "fmt"
//import "os"
2024-06-05 00:08:54 +03:00
type CompanyGetter struct{}
2024-06-05 00:08:54 +03:00
func (l CompanyGetter) GetValues(
c *amo.Client,
opts ...urlenc.Builder,
) ([]amo.Company, amo.NextFunc[[]amo.Company], error) {
return c.GetCompanies(opts...)
}
2024-06-05 00:08:54 +03:00
func (l CompanyGetter) GetNameMul() string {
return "companies"
}
2024-06-05 00:08:54 +03:00
func (l CompanyGetter) GetFuncName() string {
return "amo.GetCompanies"
}
var getComs = mtool.T("get-companies").Func(func(
flags *mtool.Flags,
){
RunGetter(CompanyGetter{}, flags)
})