-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adding secrets rm
command
#279
Conversation
64d3e9c
to
150040e
Compare
e324e4e
to
98087d9
Compare
secrets rm
command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found some small problems.
Yes in that case -f is useless don't put that in. Add in -r though.
|
It's about consistent semantics not just convenience.
|
Polykey-CLI/tests/secrets/stat.test.ts Lines 51 to 64 in 40fb687
I've noticed something interesting. In almost every test, we define const command = ['secrets', 'rm', '-np', dataDir, `${vaultName}:secret`];
const result = await testUtils.pkStdio(command, {
env: { PK_PASSWORD: password },
cwd: dataDir,
}); This would have the result of making the tests slightly faster and more readable. I have also noticed that in some tests, |
feat: adding secrets rm feat: added tests chore: added tests fix: lint fix: lint chore: updated package.json
2ea86a6
to
51cc64f
Compare
All the tasks have been finished for this PR and approval has also been granted. Merging. |
Spreading is usually intended for shallow copies. Not sure what that's for. |
Interesting it's 1 commit message. Do note to use ls not list in order to be consistent in our messaging. |
Description
Implement
secrets rm
command following the behaviour of UNIX. For example, passing the-r
flag would recursively delete a directory and it's contents, and we can supply multiple secret paths to the command.Issues Fixed
secrets rm
command #247 (ENG-360)secrets rm
RPC handler Polykey#803Tasks
secrets rm
command (functionally similar tosecrets del
)--recursive
to delete directories and their contentsFinal checklist