Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating secrets env command #129

Merged
merged 9 commits into from
Feb 27, 2024
2 changes: 1 addition & 1 deletion npmDepsHash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha256-buIzGNjR5CMM7BNlw5srJtVTSH/6Ru+UsMeXeNOjgZ4=
sha256-hS9LURKsHIb8bg/LEbGGkrHP4oAxDGeQKvopl8PhuL4=
99 changes: 75 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"devDependencies": {
"@matrixai/errors": "^1.2.0",
"@matrixai/logger": "^3.1.0",
"@matrixai/exec": "^0.1.2",
"@swc/core": "1.3.82",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.2",
Expand All @@ -134,7 +135,7 @@
"nexpect": "^0.6.0",
"node-gyp-build": "^4.4.0",
"nodemon": "^3.0.1",
"polykey": "^1.2.1-alpha.47",
"polykey": "^1.2.1-alpha.49",
"prettier": "^3.0.0",
"shelljs": "^0.8.5",
"shx": "^0.3.4",
Expand Down
13 changes: 13 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@ class ErrorPolykeyCLINodePingFailed<T> extends ErrorPolykeyCLI<T> {
exitCode = 1;
}

class ErrorPolykeyCLIInvalidEnvName<T> extends ErrorPolykeyCLI<T> {
static description =
'Secret retrieved has an invalid environment variable name';
exitCode = sysexits.USAGE;
}

class ErrorPolykeyCLIDuplicateEnvName<T> extends ErrorPolykeyCLI<T> {
static description = 'Environment variable name already retrieved';
exitCode = sysexits.USAGE;
}

export {
ErrorPolykeyCLI,
ErrorPolykeyCLIUncaughtException,
Expand All @@ -159,4 +170,6 @@ export {
ErrorPolykeyCLIAgentProcess,
ErrorPolykeyCLINodeFindFailed,
ErrorPolykeyCLINodePingFailed,
ErrorPolykeyCLIInvalidEnvName,
ErrorPolykeyCLIDuplicateEnvName,
};
Loading