Skip to content

hduhelp/hdu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hdu-cli

Installation Or Upgrade

go install github.com/hduhelp/hdu-cli@latest

or direct download the release file which suffix match your platform.

Startup

use command like

hdu-cli net login --username {Your student number} --password {Your HDU Cas Password} --save

or manually use the .hdu-cli.yaml and fill according the comments

Trouble shoot

The Command may need root privilege

and sometimes go env is not install completely on your root account (sudo mode)

so try like sudo $GOROOT/bin/go install github.com/hduhelp/hdu-cli@latest

By the way, if you follow the offical installation guide of GO, The goroot will be like /usr/local/go/

Usage

hdu-cli [sub command]

Available Sub Commands:

  • completion
    • generate the autocompletion script for the specified shell
  • help
    • Help about any command
  • net
    • i-hdu network auth cli

Flags:

  • --config string
  • -h, --help
    • help for hdu_cli
  • -s, --save
    • save config
  • -V, --verbose
    • show more info
  • -v, --version
    • version for hdu_cli

Use hdu_cli [sub command] --help for more information about a command.