Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
No online authorization required for local cluster commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrandwijk committed Nov 12, 2017
1 parent 1a6b4c2 commit 67729fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/packages/graphcool-cli-core/src/commands/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ export default class InfoCommand extends Command {
}),
}
async run() {
await this.auth.ensureAuth()
let { target } = this.flags

const { id } = await this.env.getTarget(target)
const targetName = target || 'default'

await this.auth.ensureAuth()

const projects: Project[] = await this.client.fetchProjects()

const info = await this.client.fetchProjectInfo(id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ export default class FunctionLogs extends Command {
}),
}
async run() {
await this.auth.ensureAuth()
const { tail, target } = this.flags
const functionName = this.flags.function

const {id} = await this.env.getTarget(target)
debug(`function name ${functionName}`)
debug(`service id ${id}`)

await this.auth.ensureAuth()

if (!functionName) {
await this.provideAllFunctionLogs(id, tail)
} else {
Expand Down

0 comments on commit 67729fb

Please sign in to comment.