11import type { Command } from "@commander-js/extra-typings" ;
2- import console from "node:console" ;
32import { confirm } from "@inquirer/prompts" ;
4- import ora from "ora" ;
3+ import Table from "cli-table3" ;
4+ import console from "node:console" ;
55import { readFileSync } from "node:fs" ;
6+ import process from "node:process" ;
67import { setTimeout } from "node:timers" ;
7- import Table from "cli-table3 " ;
8+ import ora from "ora " ;
89import { getAuthToken } from "../helpers/config.ts" ;
9- import process from "node:process" ;
1010import {
1111 logAndQuit ,
1212 logSessionTokenExpiredAndQuit ,
1313 logSupportCTAAndQuit ,
1414} from "../helpers/errors.ts" ;
1515import { getApiUrl } from "../helpers/urls.ts" ;
16- import { isFeatureEnabled } from "./posthog.ts" ;
1716import { registerSsh } from "./ssh.ts" ;
1817
1918type VMInstance = {
@@ -23,13 +22,7 @@ type VMInstance = {
2322 last_updated_at : string ;
2423} ;
2524
26- export async function registerVM ( program : Command ) {
27- const isEnabled = await isFeatureEnabled ( "vms" ) ;
28-
29- if ( ! isEnabled ) {
30- return ;
31- }
32-
25+ export function registerVM ( program : Command ) {
3326 const vm = program
3427 . command ( "vm" )
3528 . aliases ( [ "v" , "vms" ] )
@@ -132,7 +125,8 @@ export async function registerVM(program: Command) {
132125 ( val ) => {
133126 const parsedValue = Number ( val ) ;
134127 if (
135- Number . isNaN ( parsedValue ) || ! Number . isInteger ( parsedValue ) ||
128+ Number . isNaN ( parsedValue ) ||
129+ ! Number . isInteger ( parsedValue ) ||
136130 parsedValue <= 0
137131 ) {
138132 logAndQuit ( "Limit must be a positive integer" ) ;
0 commit comments