Skip to content

Commit

Permalink
rename to org switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jairad26 committed Oct 4, 2024
1 parent b616306 commit 6a32143
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import {Command} from '@oclif/core'
import { Command } from '@oclif/core'
import chalk from "chalk";
import * as fs from 'node:fs'
import { createInterface } from "node:readline";

import { fileExists, getEnvFilePath, promptOrgSelection, readEnvFile, sendGraphQLRequest } from '../../util/index.js'


export default class ChangeOrg extends Command {
export default class OrgSwitch extends Command {
static override args = {
}

static override description = 'Change the current Hypermode organization'
static override description = 'Switch the current Hypermode organization'

static override examples = [
'<%= config.bin %> <%= command.id %>',
]

static override flags = {
}
static override flags = {}

public async run(): Promise<void> {
const envFilePath = getEnvFilePath();
Expand Down
14 changes: 0 additions & 14 deletions test/commands/change-org/index.test.ts

This file was deleted.

9 changes: 9 additions & 0 deletions test/commands/org/switch.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {runCommand} from '@oclif/test'
import {expect} from 'chai'

describe('org:switch', () => {
it('runs org:switch cmd', async () => {
const {stdout} = await runCommand('org:switch')
expect(stdout).to.contain('Not logged in.')
})
})
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/index.ts","./src/commands/hello/index.ts","./src/commands/hello/world.ts"],"version":"5.6.2"}
{"root":["./src/index.ts","./src/commands/change-org/index.ts","./src/commands/hello/index.ts","./src/commands/hello/world.ts","./src/commands/login/index.ts","./src/commands/logout/index.ts","./src/util/index.ts"],"errors":true,"version":"5.6.2"}

0 comments on commit 6a32143

Please sign in to comment.