This repository was archived by the owner on Jul 12, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Delete credential flags #774
Delete credential flags #774
Changes from 4 commits
20d5d07
e23b3c9
02d2d7a
0e9de1b
24fc74c
47d5fc2
d87b133
ccbf9f2
bdb7fc3
7c519e3
d8aeae1
8868107
f9527a5
328d385
10f9b8e
ff08f94
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
could you extract the
flag
struct from the formula.go and useaddReservedFlags
function to generate all flags to any commands?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.
Sorry I am a bit lost, are core commands supposed to have reserved flags?
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.
When you declare an array like this, you are saying that its capacity is the data size and you are giving each position of the array an empty value, by appending it will add to the next position displaying to the user a select with empty fields.
For example, if the data has a size of 3 you will have an array with size 3, and when appending it will add one more position and the size of your array will be 6 with the first 3 empty positions.
we have two ways to fix this:
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.
the first option does not pass the linter since we need to preallocate it, going for the second