Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Add range syntax sugar for secret generation #2250

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

njhale
Copy link
Member

@njhale njhale commented Oct 16, 2023

Add the ability to specify ranges "A-Z", "a-z", and "0-9" when providing
arguments for basic and token type secrets.

Comment on lines +14 to +33
{
name: "A-Z",
want: "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test case for empty ranges being passed too? Mainly to make certain we don't have any chance of hitting an out of bounds panic.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Add the ability to specify ranges "A-Z", "a-z", and "0-9" when providing
arguments for basic and token type secrets.

Signed-off-by: Nick Hale <[email protected]>
@njhale njhale requested a review from tylerslaton October 16, 2023 21:27
@njhale njhale merged commit 2be8a30 into acorn-io:main Oct 16, 2023
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants