-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --dev flag for upgrade command and update version handling
- Add a new command-line flag `--dev` to the `upgrade` command - Update the URL for downloading the latest version in the `DoQcadmin` function - Add new fields `Latest`, `Stable`, and `Dev` to the `versionGet` struct - Modify the `PreCheckLatestVersion` function to handle the new API response structure and the `--dev` flag - Update the `ShowVersion` function to pass the `--dev` flag to `PreCheckLatestVersion` - Add the `CDNVersionURL` constant in the `const.go` file Signed-off-by: ysicing <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters