GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vouv/srun: 北京理工大学校园网命令行登录工具,多系统支持

BranchesTags
Open more actions menu

Latest commit

 

History

158 Commits
158 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmd/srun
cmd/srun
 
 
core
core
 
 
hash
hash
 
 
model
model
 
 
resp
resp
 
 
store
store
 
 
utils
utils
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

Srun

Build Status Go Report Card License GoDoc

An efficient client for BIT campus network

北京理工大学校园网命令行登录工具

  • 支持linux、maxOS、windows
  • 基于Go语言实现

Related Projects

  • macOS客户端: SrunBar

Install

  1. Homebrew(macOS only)
$ brew tap vouv/tap
$ brew install srun
$ srun config
  1. Curl(for Linux amd64) Release
# linux
$ curl -L -o srun https://github.com/vouv/srun/releases/latest/download/srun-linux
$ chmod +x ./srun
$ ./srun config
  1. go get

如果已经安装并配置GO环境, 执行如下命令即可

$ go install github.com/vouv/srun/cmd/srun@latest
$ $GOPATH/bin/srun config

Usage

Show Help

$ srun -h

Config

$ srun config

Login

$ srun
$ srun login

Info

$ srun info

Update Log

2020.12.18

  • 自动构建切换到Github Actions

2020.11.3

  • 优化新版登录逻辑
  • 优化命令行框架
  • 删除无用代码,优化代码结构

2020.9.6

  • 修复一些bug
  • 移除不用的移动联通登录模式

2019.11.16

  • 更新安装方式
  • 优化项目api与项目结构

2019.9.10

  • 修改优化登录逻辑
  • 修复一些bug

2019.1.3

  • 实现无缓冲输入密码(在macOS上测试通过)
  • 修复宿舍无法登录移动网的bug

2018.11.24

  • 增加登出功能
  • 增加查询流量和余额功能

2018.9.1

  • 实现登录与设置账号的功能

Contribute

要求先安装好golang环境 go version > 1.10

先克隆项目

$ git clone https://github.com/vouv/srun && cd srun

macOS下编译

$ make

或

$ make darwin

Windows下编译

$ make windows

Linux下编译

$ make linux

编译好的可执行文件在bin文件夹中

About

主要功能与原理

  • 本地保存账号到$HOME/.srun/account.json(对安全性有疑问的请自行看代码)
  • 使用账号快速登录校园网,环境支持的情况下也可以一键登录

Thanks to

  • logrus
  • cobra

About

北京理工大学校园网命令行登录工具,多系统支持

Topics

bitbitwebcommandline-toolgolangsrunsrun-client

Resources

Readme
MIT license
Activity

Stars

131 stars

Watchers

3 watching

Forks

30 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.