Skip to content

Commit 7076d99

Browse files
committed
chore: Shift back to .harperdb
1 parent 91ffdb7 commit 7076d99

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

bin/cliCredentials.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Tokens {
1717
}
1818

1919
/**
20-
* Loads the JWT credentials from the ~/.harper/credentials.json file.
20+
* Loads the JWT credentials from the ~/.harperdb/credentials.json file.
2121
*/
2222
export function loadCredentials(): TargetedCredentials {
2323
const credentialsFile = getCredentialsFile();
@@ -35,7 +35,7 @@ export function loadCredentials(): TargetedCredentials {
3535
}
3636

3737
/**
38-
* Saves the JWT credentials to the ~/.harper/credentials.json file.
38+
* Saves the JWT credentials to the ~/.harperdb/credentials.json file.
3939
*/
4040
export function saveCredentials(target: string, tokens: Tokens): void {
4141
try {
@@ -97,9 +97,9 @@ export function clearCredentials(target: string): void {
9797
}
9898

9999
function getCredentialsFile(): string {
100-
return path.join(getHomeDir(), '.harper', 'credentials.json');
100+
return path.join(getHomeDir(), '.harperdb', 'credentials.json');
101101
}
102102

103103
function getCredentialsDir(): string {
104-
return path.join(getHomeDir(), '.harper');
104+
return path.join(getHomeDir(), '.harperdb');
105105
}

bin/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function login(targetArg: string, usernameArg: string): Promise<voi
2727
console.log(
2828
chalk.gray('If you create a cluster, you can enter your credentials here. They will be exchanged for a JWT from')
2929
);
30-
console.log(chalk.gray('your cluster, which will be saved inside ~/.harper/credentials.json\n'));
30+
console.log(chalk.gray('your cluster, which will be saved inside ~/.harperdb/credentials.json\n'));
3131

3232
const defaultTarget = process.env.HARPER_CLI_TARGET || process.env.CLI_TARGET;
3333
let target = targetArg || defaultTarget;

unitTests/bin/cliCredentials.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { loadCredentials, saveCredentials, clearCredentials } = require('#src/bin
88

99
describe('CLI Credentials', () => {
1010
const testDir = path.join(os.tmpdir(), `harper-test-creds-${Date.now()}`);
11-
const credentialsFile = path.join(testDir, '.harper', 'credentials.json');
11+
const credentialsFile = path.join(testDir, '.harperdb', 'credentials.json');
1212
let originalHome;
1313

1414
before(() => {

unitTests/bin/logout.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { logout } = require('#src/bin/logout');
99

1010
describe('Logout command', () => {
1111
const testDir = path.join(os.tmpdir(), `harper-test-logout-${Date.now()}`);
12-
const credentialsFile = path.join(testDir, '.harper', 'credentials.json');
12+
const credentialsFile = path.join(testDir, '.harperdb', 'credentials.json');
1313
let originalHome;
1414
let originalExit;
1515
let exitCode;

0 commit comments

Comments
 (0)