@basictech/cli
Version:
Basic CLI for creating & managing your projects
19 lines • 726 B
JavaScript
import { getConfigDir } from '../lib/platform.js';
import { getVersion } from '../lib/version.js';
import { AuthService } from '../lib/auth.js';
export async function DebugCommand() {
const configDir = getConfigDir();
console.log(` Version: ${getVersion()}`);
console.log(` Config dir: ${configDir}`);
console.log(` Node: ${process.version}`);
console.log(` Platform: ${process.platform} ${process.arch}`);
try {
const authService = AuthService.getInstance();
const token = await authService.getToken();
console.log(` Logged in: ${token ? 'yes' : 'no'}`);
}
catch {
console.log(' Logged in: unknown');
}
}
//# sourceMappingURL=debug.js.map