40 GetToken() string
41}
42
43func (t TransformersRequest) Do(ctx context.Context, client IGQLClient) ([]transformers.Transformer, error) {44 req := graphql.NewRequest(listTransformersQuery)
45
46 // set header fields
29 GQL() *graphql.Client
30}
31
32func (r RegisterDeviceRequest) Do(ctx context.Context, client IGQLClient) (*auth.Device, error) {33 req := graphql.NewRequest(registerDeviceMutation)
34 req.Header.Set("Cache-Control", "no-cache")
35
42 GetToken() string
43}
44
45func (a AnalyzersRequest) Do(ctx context.Context, client IGQLClient) ([]analyzers.Analyzer, error) {46 req := graphql.NewRequest(listAnalyzersQuery)
47
48 // set header fields
38}
39
40// Run executes the command.
41func (o *Options) Run() error { 42 // Fetch config
43 cfg, err := config.GetConfig()
44 if err != nil {
34 return cmd
35}
36
37func (opts *AuthStatusOptions) Run() error {38 // Fetch config
39 cfg, err := config.GetConfig()
40 if err != nil {
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
func (*Unix) Name() string {
return "unix"
}