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

Read secrets from command line provided paths, if specified #242

Conversation

TheArcaneBrony
Copy link
Contributor

No description provided.

Copy link
Member

@Gnuxie Gnuxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, I have some small style issues for now, working on reviewing the rest

src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
src/config.ts Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
Comment on lines +341 to +344
//check if the next index is not an option
if (args[optionIndex + 1] && !args[optionIndex + 1].startsWith("--")){
return args[optionIndex + 1];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
src/config.ts Outdated Show resolved Hide resolved
@TheArcaneBrony
Copy link
Contributor Author

Code has been tested for a few cases (passing no arg, passing invalid path, not passing arg at all, and passing a valid file), appears to work as expected

src/config.ts Outdated Show resolved Hide resolved
src/config.ts Show resolved Hide resolved
@Gnuxie Gnuxie merged commit 561cd96 into the-draupnir-project:main Feb 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants