Skip to content

syx0310/wlu-login-cli

 
 

Repository files navigation

wlu-login-cli

A CLI tool for web auth of westlake university, based on hdu-cli matained by hduhelp

Installation Or Upgrade

go install github.com/syx0310/wlu-login-cli@latest

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

Startup

use command like the ac_id might be 1 if you are using wireless network, and 6 if you are using wired network

wlu-login-cli net login --username {Your student number} --password {Your Westlake University SSO Password} -a {Your ac_id} --save

or manually use the .wlu-login-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/syx0310/wlu-login-cli@latest

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

Usage

wlu-login-cli [sub command]

Available Sub Commands:

  • completion
    • generate the autocompletion script for the specified shell
  • help
    • Help about any command
  • net
    • westlake university network auth cli

Flags:

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

Use wlu-login-cli [sub command] --help for more information about a command.

About

西湖大学校园网命令行登录

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.8%
  • Go 16.2%