Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Forgione c4013c0723
Better doc for update 2019-06-05 10:03:03 +02:00
Thomas Forgione 3b1e30686d
Even better 2019-06-05 09:52:50 +02:00
1 changed files with 13 additions and 16 deletions

View File

@ -263,11 +263,7 @@ update-npm() {
start_npm_update=`date +%s`
echo -e "\033[32;1m=== Updating node packages ===\033[0m"
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm install -g `echo $package | cut -d '@' -f 1`
done
npm update -g
seconds=$((`date +%s` - $start_npm_update ))
formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
@ -334,19 +330,20 @@ _print_help() {
_print_usage() {
echo -e "\033[33mUSAGE:\033[0m"
echo -e " update <subcommand>"
echo -e " \033[32mupdate\033[0m Auto-detect what to update and perform th update"
echo -e " \033[32mupdate <subcommand>\033[0m Calls the update subcommand"
echo
echo -e "\033[33mSUBCOMMANDS:\033[0m"
echo -e " \033[32msystem\033[0m Updates the system (Debian, Archlinux, Fedora)"
echo -e " \033[32mrust\033[0m Updates rust and rust packages (requires rustup)"
echo -e " \033[32mwasm\033[0m Updates wasmer"
echo -e " \033[32mnpm\033[0m Updates npm packages (in ~/.config/npmbin)"
echo -e " \033[32mdotfiles\033[0m Updates the dotfiles"
echo -e " \033[32mneovim\033[0m Updates the neovim packages"
echo -e " \033[32mcheck\033[0m Checks whether the system has been recently updated"
echo -e " \033[32mstartup\033[0m Same as \`update check\` but is silent in case of success"
echo -e " \033[32mpostpone\033[0m Skip the current update (disable check warnings)"
echo -e " \033[32mforce-unlock\033[0m Deletes the lock file"
echo -e " \033[32msystem\033[0m Updates the system (Debian, Archlinux, Fedora)"
echo -e " \033[32mrust\033[0m Updates rust and rust packages (requires rustup)"
echo -e " \033[32mwasm\033[0m Updates wasmer"
echo -e " \033[32mnpm\033[0m Updates npm packages (in ~/.config/npmbin)"
echo -e " \033[32mdotfiles\033[0m Updates the dotfiles"
echo -e " \033[32mneovim\033[0m Updates the neovim packages"
echo -e " \033[32mcheck\033[0m Checks whether the system has been recently updated"
echo -e " \033[32mstartup\033[0m Same as \`update check\` but is silent in case of success"
echo -e " \033[32mpostpone\033[0m Skip the current update (disable check warnings)"
echo -e " \033[32mforce-unlock\033[0m Deletes the lock file"
}
partial-test() {