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

new command: zcli update #185

Open
nermalcat69 opened this issue Oct 11, 2024 · 2 comments · May be fixed by #193
Open

new command: zcli update #185

nermalcat69 opened this issue Oct 11, 2024 · 2 comments · May be fixed by #193
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@nermalcat69
Copy link
Contributor

nermalcat69 commented Oct 11, 2024

💡 Proposed Idea

We're looking to implement an update feature similar to ohmyzsh, where it prompts you with a y/n option whenever you boot your terminal.

oh-my-zsh-auto-update@1x


  1. upon installation, detect which installation method was used (npm, manual)
  2. Save the method of initial install on the system

On startup of a terminal, zCLI should:

  1. Check for a newer version
  2. If outdated, display an update notification (lower than the latest GitHub tag)
  3. Inform the user that an update is required
  4. Ask whether to run the update command using y/n.

🎉 After clicking y:-

  1. Display the result of the update process (success or failure)
  2. If the automatic update fails, provide instructions for manual update

🤔 Where to create a command?

You can create this command at src/cmd/update.go and make sure you use src/i18n & src/cmdBuilder. I also recommend looking into other files 💯

🧭 For more info

Join our discord server https://discord.gg/3yZknaRhxK

@nermalcat69 nermalcat69 self-assigned this Oct 11, 2024
@nermalcat69 nermalcat69 changed the title New Command: zcli update new command: zcli update Oct 11, 2024
@nermalcat69 nermalcat69 added enhancement New feature or request good first issue Good for newcomers labels Oct 11, 2024
@nermalcat69
Copy link
Contributor Author

image

@nermalcat69 nermalcat69 added the help wanted Extra attention is needed label Nov 2, 2024
@manojks1999
Copy link

@nermalcat69, can I work on this ?

@khareyash05 khareyash05 linked a pull request Nov 11, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants