This repository has been archived by the owner on Sep 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk): use sdk, add update method
- Loading branch information
1 parent
a630b39
commit e94c90f
Showing
40 changed files
with
679 additions
and
924 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import chalk from 'chalk'; | ||
|
||
export const secretAdded = ({ | ||
secretName, | ||
vaultName, | ||
}: { | ||
secretName: string; | ||
vaultName: string | undefined; | ||
}): never => { | ||
process.stdout.write(` | ||
✨ ${chalk.cyan(secretName)} added to ${chalk.cyan( | ||
vaultName ? vaultName : 'Personal', | ||
)} vault! | ||
To view: | ||
${chalk.bold( | ||
`$ snip get "${secretName}"${vaultName ? ` --vault "${vaultName}"` : ''}`, | ||
)} | ||
`); | ||
|
||
process.exit(0); | ||
}; | ||
|
||
export const secretAddedJson = ({ | ||
secretId, | ||
vaultId, | ||
}: { | ||
secretId: string; | ||
vaultId: string; | ||
}): never => { | ||
process.stdout.write( | ||
JSON.stringify({ SecretId: secretId, VaultId: vaultId }, null, 2), | ||
); | ||
|
||
process.exit(0); | ||
}; |
Oops, something went wrong.