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

Refactor common code from etcdctl (v2,v3) to pkg/corbautl. #12969

Merged
merged 1 commit into from
May 14, 2021

Conversation

ptabor
Copy link
Contributor

@ptabor ptabor commented May 14, 2021

Preparation for etcdutl split.

Copy link
Contributor

@lilic lilic left a comment

Choose a reason for hiding this comment

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

Nice refactor!

I have one non-blocking question/suggestion regarding the package naming.

@@ -12,13 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package command
package cobrautl
Copy link
Contributor

Choose a reason for hiding this comment

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

Non blocking suggestion: Are any of these exit codes really specific to cobra? This is more like exit util helper package if I understand correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are not indeed. But all our 'binaries' run on cobra as a app-framework. I didn't found it worth to split completely.

@gyuho gyuho merged commit f2bc5ee into etcd-io:main May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants