Skip to content

feat: add update command - #27

Open
singhvishalkr wants to merge 1 commit into
Bhupesh-V:masterfrom
singhvishalkr:feat/update-command
Open

feat: add update command#27
singhvishalkr wants to merge 1 commit into
Bhupesh-V:masterfrom
singhvishalkr:feat/update-command

Conversation

@singhvishalkr

Copy link
Copy Markdown

This PR adds an update command to dotman so users can easily update to the latest version.

Running dotman update (or dotman -u) will:

  • Show the current installed version
  • Check the latest available version on GitHub
  • If a newer version exists, fetch and checkout the latest tag

The update script lives in tools/update.sh alongside the existing install.sh. It follows the same pattern of using environment variables (DOTMAN, REPO, BRANCH) for configuration.

Also added a Commands table to README.md documenting all available commands.

Closes #11

Add tools/update.sh script that allows users to update dotman to the
latest version by running 'dotman update' or 'dotman -u'.

The script:
- Compares current version against latest GitHub release
- Fetches and checks out the latest tag if an update is available
- Shows current and latest version numbers

Also documented the new command in README.md.

Closes Bhupesh-V#11
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.

add an update script

1 participant