-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnect.ts
More file actions
25 lines (19 loc) · 814 Bytes
/
connect.ts
File metadata and controls
25 lines (19 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { BaseCommand } from '../common/base-command.js';
import { ConnectOrchestrator } from '../orchestrators/connect.js';
export default class Connect extends BaseCommand {
static description =
`Open a connection to the Codify dashboard. This command will host a local server to receive commands (e.g. apply, destroy, etc.)
from the Codify dashboard.
For more information, visit: https://codifycli.com/docs/commands/connect
`
static flags = {}
static examples = [
'<%= config.bin %> <%= command.id %>',
'<%= config.bin %> <%= command.id %> --path=../../import.codify.jsonc',
]
public async run(): Promise<void> {
const { flags } = await this.parse(Connect)
const rootCommand = this.config.options.root;
await ConnectOrchestrator.run(rootCommand, this.reporter);
}
}