Skip to content

Commit

Permalink
Go
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Dec 31, 2024
1 parent 688441c commit a6abb50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/gateway/src/commands/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
defaultOptions,
type AddCommand,
type CLIContext,
type CLIGlobals,
type GatewayCLIConfig,
} from '../cli';
import {
Expand Down Expand Up @@ -40,7 +39,7 @@ export const addCommand: AddCommand = (ctx, cli) =>
hivePersistedDocumentsEndpoint,
hivePersistedDocumentsToken,
...opts
} = this.optsWithGlobals<CLIGlobals>();
} = this.optsWithGlobals();
const loadedConfig = await loadConfig({
log: ctx.log,
configPath: opts.configPath,
Expand Down
3 changes: 1 addition & 2 deletions packages/gateway/src/commands/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
defaultOptions,
type AddCommand,
type CLIContext,
type CLIGlobals,
type GatewayCLIConfig,
} from '../cli';
import {
Expand Down Expand Up @@ -41,7 +40,7 @@ export const addCommand: AddCommand = (ctx, cli) =>
hivePersistedDocumentsEndpoint,
hivePersistedDocumentsToken,
...opts
} = this.optsWithGlobals<CLIGlobals>();
} = this.optsWithGlobals();
const loadedConfig = await loadConfig({
log: ctx.log,
configPath: opts.configPath,
Expand Down
3 changes: 1 addition & 2 deletions packages/gateway/src/commands/supergraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
defaultOptions,
type AddCommand,
type CLIContext,
type CLIGlobals,
type GatewayCLIConfig,
} from '../cli';
import {
Expand Down Expand Up @@ -57,7 +56,7 @@ export const addCommand: AddCommand = (ctx, cli) =>
hivePersistedDocumentsEndpoint,
hivePersistedDocumentsToken,
...opts
} = this.optsWithGlobals<CLIGlobals>();
} = this.optsWithGlobals();

// TODO: move to optsWithGlobals once https://github.com/commander-js/extra-typings/pull/76 is merged
const { apolloUplink } = this.opts();
Expand Down

0 comments on commit a6abb50

Please sign in to comment.