@coresource/hz 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hz.mjs +4 -4
- package/package.json +1 -1
package/dist/hz.mjs
CHANGED
|
@@ -73,7 +73,7 @@ function resolveConfigPath(options = {}) {
|
|
|
73
73
|
if (options.configPath) {
|
|
74
74
|
return options.configPath;
|
|
75
75
|
}
|
|
76
|
-
return path.join(resolveHomeDir(options), ".
|
|
76
|
+
return path.join(resolveHomeDir(options), ".hz", "config.json");
|
|
77
77
|
}
|
|
78
78
|
async function readConfig(options = {}) {
|
|
79
79
|
const configPath = resolveConfigPath(options);
|
|
@@ -422,7 +422,7 @@ async function resolveOrganizationName(apiKey, endpoint, tenantId) {
|
|
|
422
422
|
}
|
|
423
423
|
function registerAuthCommands(program, context) {
|
|
424
424
|
const auth = program.command("auth").description("Manage authentication");
|
|
425
|
-
auth.command("login").description("Store an API key in ~/.
|
|
425
|
+
auth.command("login").description("Store an API key in ~/.hz/config.json").option("--endpoint <url>", "API endpoint to use").option("--key <apiKey>", "API key to store locally").action(async (options) => {
|
|
426
426
|
const existing = await readConfig({
|
|
427
427
|
env: context.env,
|
|
428
428
|
homeDir: context.homeDir
|
|
@@ -811,7 +811,7 @@ function resolveHomeDir2(options = {}) {
|
|
|
811
811
|
return options.homeDir ?? process.env.HOME ?? os2.homedir();
|
|
812
812
|
}
|
|
813
813
|
function resolveLaunchesDir(options = {}) {
|
|
814
|
-
return path2.join(resolveHomeDir2(options), ".
|
|
814
|
+
return path2.join(resolveHomeDir2(options), ".hz", "cloud-launches");
|
|
815
815
|
}
|
|
816
816
|
function normalizeTask(task) {
|
|
817
817
|
const normalized = task.trim();
|
|
@@ -2698,7 +2698,7 @@ function resolveLifecycleHomeDir(context) {
|
|
|
2698
2698
|
});
|
|
2699
2699
|
}
|
|
2700
2700
|
async function findMostRecentMissionId(homeDir) {
|
|
2701
|
-
const launchesDir = path3.join(homeDir, ".
|
|
2701
|
+
const launchesDir = path3.join(homeDir, ".hz", "cloud-launches");
|
|
2702
2702
|
let entries;
|
|
2703
2703
|
try {
|
|
2704
2704
|
entries = await readdir2(launchesDir, { withFileTypes: true });
|