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

Auto upgrade libraries #144

Merged
merged 2 commits into from
Oct 29, 2021
Merged

Auto upgrade libraries #144

merged 2 commits into from
Oct 29, 2021

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Oct 29, 2021

This PR makes it so upgrading libraries and regenerating completions (when in its function form), can be done automatically by supplying the --upgrade to the bashly generate command.

This is achieved by the employing the following:

  1. Generated library files have a magic comment marker, in the form of [@bashly-upgrade ID]
  2. When the --upgrade flag is invoked, we will scan all the files in the target folder for these markers, and if found, upgrade the particular file if its path matches the path expected by the library.

Closes #126 , Closes #86

@DannyBen DannyBen merged commit 7256fba into master Oct 29, 2021
@DannyBen DannyBen deleted the add/lib-auto-upgrade branch October 29, 2021 15:15
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.

Library functions are hard to upgrade Consider regenerating completions on bashly generate
1 participant