Skip to content

hduhelp/hdu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c16fdc · May 31, 2022

History

46 Commits
Apr 27, 2022
Apr 27, 2022
Apr 27, 2022
Dec 7, 2021
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Nov 25, 2021
Apr 30, 2022
May 31, 2022
May 31, 2022
Nov 27, 2021

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.