Last active
September 15, 2018 14:50
-
-
Save minhducsun2002/37589a7b85ed5996c6c444aa714d1f20 to your computer and use it in GitHub Desktop.
A test session of Maid
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
$ maid --help | |
You're having Maid version 1.2.3. Run with --check-update or --update to see if a new version of Maid is available. | |
You're running a beta release. Run with --check-update=stable to see current stable channel's version. | |
Possible arguments : | |
install - install a package | |
search - search a package using regex | |
show - show package details | |
purge - remove a package along with its data (only available for some packages) | |
update - update list of packages available | |
upgrade - upgrade all possible packages that is upgradable | |
config - runs configurations for Maid | |
Run maid <command> --help to see help for that specific command. | |
Run maid <command> --example to see examples for that Maid command (can be combined with --help). | |
$ maid install --help --example | |
Maid help : install a package | |
Syntax : maid install (<package>[=<version>]).* [arguments] | |
<package> and <version> can be regular expressions. | |
In case an update to the package is available, the latest version will be installed. | |
In case the desired version of the package is lower than currently installed's version (i.e. downgrade), | |
"maid purge <package>" will be invoked first. You'll be asked if any arguments should be passed to it. | |
Example : | |
$ maid install sublime-text=3143 code=1.27.1 --assume-yes | |
# install sublime-text (version 3143) and code (version 1.27.1), answer yes to all questions | |
$ maid install nodejs | |
# install latest available version of nodejs | |
$ maid upgrade --help | |
Maid help : upgrade all packages | |
Syntax : maid upgrade | |
$ maid install code=1.27.1 nodejs | |
Maid : installing the following package : | |
code (version explicitly specified : 1.27.1) | |
nodejs (latest version) | |
Searching sources (this may takes a while...) | |
Sources for packages : | |
code : https://go.microsoft.com/fwlink/?Linkid=850641 (maybe we need redirection) (detected source : official source) | |
nodejs : https://nodejs.org/dist/v8.12.0/node-v8.12.0-win-x64.zip (detected source : official source) | |
Confirm installation (Y/N/?) ? : Y | |
Getting packages : | |
code : 100% | |
aimp : 100% | |
Installing... | |
code :: extracting zip file... | |
putting stuffs to directories... | |
setting PATH... | |
== Done == | |
aimp :: extracting zip file... | |
putting stuffs to directories... | |
setting PATH... | |
== Done == | |
Done installing 2 packages in 10.50 seconds | |
$ maid upgrade | |
Maid : upgrading all upgradable packages | |
Searching for installed packages... | |
Filtering for upgradables... | |
The following packages can be upgraded: | |
wfind (upgradable from 1.0 to 1.1) | |
Searching sources (this may takes a while...) | |
Sources for package : | |
wfind : https://github.com/42tm/wfind/releases/download/v1.1/wfind_64.exe (detected source : GitHub Releases) | |
Confirm upgrading (Y/N/?) : ? | |
enter y/ye/yes to confirm | |
enter n/no to abort | |
Confirm upgrading (Y/N/?) : Y | |
Getting packages : | |
wfind : 100% | |
Installing... | |
wfind : putting stuffs to directories... | |
setting PATH... | |
== Done == | |
Done upgrading 1 packages in 2.78 seconds | |
$ maid install sublime-text=3176 --emulate | |
== THIS IS AN EMULATED SESSION == | |
Maid : installing the following package : | |
sublime-text (version explicitly specified : 3176) | |
Searching for source... | |
Source for package : | |
sublime-text : https://download.sublimetext.com/Sublime%20Text%20Build%203176%20x64.zip (detected source : official source) | |
Confirm installation (Y/N/?) : Y | |
Getting packages : | |
sublime-text : 100% | |
Installing... | |
sublime-text : putting stuffs to directories... | |
setting PATH... | |
== Done == | |
Done installing 1 package in 13.40 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment