This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7af1f9
commit d7c9074
Showing
5 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
19 changes: 7 additions & 12 deletions
19
cli/packages/graphcool-cli-core/src/commands/account/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
import { Command, flags, Flags } from 'graphcool-cli-engine' | ||
|
||
export default class Info extends Command { | ||
static topic = 'info' | ||
export default class Account extends Command { | ||
static topic = 'account' | ||
static description = 'Get info about the current account' | ||
static flags: Flags = { | ||
env: flags.string({ | ||
char: 'e', | ||
description: 'Environment name to set', | ||
}), | ||
project: flags.string({ | ||
char: 'p', | ||
description: 'Project Id to set', | ||
}), | ||
} | ||
async run() { | ||
await this.auth.ensureAuth() | ||
const account = await this.client.getAccount() | ||
|
||
this.out.log(`\ | ||
Email: ${account.email} | ||
Name: ${account.name}`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters