feat: update README with installation command and add debug logs in deploy command
- Added installation command for the CLI tool in README. - Enhanced deploy command with debug logging for upload results and query app version. - Integrated useKey for fetching KEVISUAL_TOKEN in get-config module. - Added debug logging in queryAppVersion for better traceability. - Updated temp.md with new dependency and example command for deployment.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import os from 'os';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import { useKey } from '@kevisual/use-config';
|
||||
|
||||
export const envisionPath = path.join(os.homedir(), '.config', 'envision');
|
||||
const configPath = path.join(os.homedir(), '.config', 'envision', 'config.json');
|
||||
@@ -37,5 +38,8 @@ export const writeConfig = (config: Record<string, any>) => {
|
||||
};
|
||||
|
||||
export const getEnvToken = () => {
|
||||
return process.env.KEVISUAL_TOKEN || '';
|
||||
const envTokne = useKey('KEVISUAL_TOKEN') || '';
|
||||
console.log('getEnvToken', envTokne);
|
||||
// return envTokne;
|
||||
return '';
|
||||
}
|
||||
Reference in New Issue
Block a user