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

[FEAT] - add "--update" option #38

Open
ximenesyuri opened this issue Nov 13, 2024 · 0 comments
Open

[FEAT] - add "--update" option #38

ximenesyuri opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ximenesyuri
Copy link

ximenesyuri commented Nov 13, 2024

Description

The suggestion is to incorporate an option --update or just update to self-update the mgc to its latest version.

The option could:

  1. collect the underlying architecture in which mgc is installed (say from lscpu or from uname -m);
  2. collect its current installation dir (with ${BASH_SOURCE[@]%/*}, or some analogue for other shells)
  3. do a bootstrap to get the latest version of mgc from its official source: the latest release of this repo.

Motivation

Since the project is constantly improving, updates may be needed frequently. This option would make users' lives easier.

Workaround

A naive attempt to provide a user-side extension for the mgc in order to include this feature can be observed here:

There are already two open pull requests proposing solutions:

  1. feat: script to help update mgc #19
  2. feat: easy install/upgrade cli #18
@ximenesyuri ximenesyuri added the enhancement New feature or request label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants