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

'draft' function name clash #1453

Closed
akaliazin opened this issue Nov 30, 2019 · 5 comments
Closed

'draft' function name clash #1453

akaliazin opened this issue Nov 30, 2019 · 5 comments

Comments

@akaliazin
Copy link

akaliazin commented Nov 30, 2019

'draft' function is defined in the lib/composure.bash

Unfortunately the name of this function is clashing with the draft binary Draft actively developed for the K8S domain.
Simply renaming 'draft' function here to say 'draft_fun' would do.

@nwinkler
Copy link
Member

nwinkler commented Dec 2, 2019

Good point. Since our composure.bash is simply a copy from here: https://github.com/erichs/composure, it might make sense to open an issue there and then update our version once the upstream change has been accepted.

@akaliazin
Copy link
Author

thanks for the prompt. Have raised the issue at the composure repo. It does not seem to be actively developed. Or maybe it has reached the Zen stage already?

@nwinkler
Copy link
Member

nwinkler commented Dec 3, 2019

Thanks! Maybe feel free to create a PR here in this repo to change the composure draft function to something like __draft?

@ernstki
Copy link

ernstki commented Jan 4, 2020

@akaliazin I think Composure is just feature complete. Finished, you might say.

Making a change to the name of this function on the Composure end, as proposed in erichs/composure#26 is not a great solution. It's a user-facing command which probably accounts for most of the typical usage of Composure.

For me, I run draft sometimes dozens of times per day, and it's very nearly the only Composure command I actually run interactively.

@nwinkler
Copy link
Member

nwinkler commented Jan 6, 2020

Thanks for the details, @ernstki!

@akaliazin I'm going to close this since I don't think that we should change the name of the Composure draft function. For your case, I suggest that you add a custom script to your Bash-it installation that either renames the Composure draft function, or defines a draft alias that points to the draft script that you prefer.

@nwinkler nwinkler closed this as completed Jan 6, 2020
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

No branches or pull requests

3 participants