Code Monkey home page Code Monkey logo

srun's Introduction

Srun

Build Status Go Report Card License GoDoc

An efficient client for BIT campus network

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

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

Related Projects

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 get -u -v github.com/vouv/srun/cmd/srun
$ $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

srun's People

Contributors

dingyx99 avatar ordosx avatar vouv avatar

Forkers

xwmp3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.