Skip to content

new command: zcli update #185

@nermalcat69

Description

@nermalcat69

💡 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions