srun

command module
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 16 Imported by: 0

README

srun

Build Status License Donate

A efficient client for BIT campus network

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

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

Install

  1. go get

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

	go get -u -v github.com/monigo/srun

运行

	$GOPATH/bin/srun -h
  1. Download Release

Update Log

2019.11.16

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

2019.9.10

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

2019.1.3

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

2018.11.24

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

2018.9.1

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

Demo

Usage: srun [OPTIONS] COMMAND

asciicast

Extra - 查看余额

$ srun info
已用流量: 54,418.87M
已用时长: 366小时38分48秒
账户余额: ¥19.68

Contribute

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

先克隆项目

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

macOS下编译

$ make

$ make darwin

Windows下编译

$ make windows

Linux下编译

$ make linux

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

About

主要功能

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

Thanks to

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
term
Package term provides structures and helper functions to work with terminal (state, sizes).
Package term provides structures and helper functions to work with terminal (state, sizes).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL