Coder Social home page Coder Social logo

figsoda / sagoin Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 190 KB

A command-line submission tool for the UMD CS Submit Server

Home Page: https://crates.io/crates/sagoin

License: GNU Affero General Public License v3.0

Rust 100.00%
marmoset submit umd cli hacktoberfest maryland

sagoin's Introduction

sagoin

release version deps license ci

sagoin is a command-line submission tool for the UMD CS Submit Server. This project is largely inspired by and aims to be the spiritual successor of the CommandLineSubmission program from the marmoset project by Jaime Spacco, William Pugh, and others, hence the AGPL-3.0-or-later license and the name sagoin, which refers to a marmoset.

Installation

The latest precompiled binaries are available on github.

Alternatively you can install sagoin from crates.io with cargo.

cargo install sagoin

Building from source

cargo build --release

Quick start

Submit the project in the current directory:

sagoin

Submit the project under the ProjectName directory:

sagoin ProjectName

Submit the project under the ProjectName directory and open the project page in a web browser:

sagoin ProjectName -o

Usage

Usage: sagoin [OPTIONS] [DIRECTORY]

Arguments:
  [DIRECTORY]  Set the working directory, all commands will be run under this directory

Options:
  -n, --no-submit                   Don't submit the project
  -l, --list-files                  List files without submitting them
  -i, --info                        Show information about the project and exit
  -o, --open                        Open the project page in a web browser
  -f, --field <KEY> <VALUE>         Additional key-value pairs to send to the submit server, this will not affect authentication
      --color <WHEN>                Controls when to use color [default: auto] [possible values: auto, always, never]
  -c, --config <FILE>               Specify the path to the config file, looks for sagoin/config.toml under XDG configuration directories on unix-like systems, and defaults to {FOLDERID_RoamingAppData}\sagoin\config.toml on windows when unspecified [env: SAGOIN_CONFIG=]
  -t, --time-format <FORMAT>        Specify how to format the due date, ignored without the --info flag, defaults to "[month repr:short] [day padding:none], [hour]:[minute]" when unspecified [env: SAGOIN_TIME_FORMAT=]
  -u, --username <USERNAME>         Specify the username for authentication, see --username-type for more information [env: SAGOIN_USERNAME=]
  -U, --username-type <TYPE>        Specify the type for the username, defaults to text when unspecified [env: SAGOIN_USERNAME_TYPE=] [possible values: command, file, text]
  -p, --password <PASSWORD>         Specify the password for authentication, see --password-type for more information [env: SAGOIN_PASSWORD=]
  -P, --password-type <TYPE>        Specify the type for the password, defaults to text when unspecified [env: SAGOIN_PASSWORD_TYPE=] [possible values: command, file, text]
  -s, --pre-submit-hook <COMMAND>   Command to run before submission [env: SAGOIN_PRE_SUBMIT_HOOK=]
  -S, --post-submit-hook <COMMAND>  Command to run after successful submissions [env: SAGOIN_POST_SUBMIT_HOOK=]
      --client-name <NAME>          Change the client name used to submit the project [env: SAGOIN_CLIENT_NAME=]
      --client-version <VERSION>    Change the client version used to submit the project [env: SAGOIN_CLIENT_VERSION=]
  -h, --help                        Print help information (use `-h` for a summary, use `--help` for more detail)
  -V, --version                     Print version information

Feature comparison

Freature Sagoin CommandLineSubmission CourseProjectManager Eclipse plugin
Submission
Work without Eclipse
LDAP authentication
OpenID authentication
CVS integration
CVS ignore
Git ignore
Custom credential input
Open project page
Submit hooks
Show project information

Configuration

File resolution:

  • for unix-like systems: looks for sagoin/config.toml under XDG configuration directories, e.g. /home/<user>/.config/sagoin/config.toml
  • for windows: defaults to {FOLDERID_RoamingAppData}\sagoin\config.toml, e.g. C:\Users\<user>\AppData\Roaming\sagoin\config.toml

The configuration file is written in TOML. Run sagoin --help for more information.

# all possible fields in config.toml
time_format = "..."
username = "..."
username_type = "command | file | text"
password = "..."
password_type = "command | file | text"
pre_submit_hook = "..."
post_submit_hook = "..."
client_name = "..."
client_version = "..."

Changelog

See CHANGELOG.md

License

This repository is licensed under GNU Affero General Public License v3.0 or later.

sagoin's People

Contributors

dependabot[bot] avatar figsoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sagoin's Issues

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.