5 releases
0.2.4 | Sep 16, 2024 |
---|---|
0.2.2 | Jun 2, 2023 |
0.2.1 | Feb 20, 2023 |
0.2.0 | Nov 19, 2022 |
0.1.0 | Oct 25, 2022 |
#432 in Command line utilities
174 downloads per month
44KB
941 lines
sagoin
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.
Dependencies
~22–38MB
~661K SLoC