https://github.com/ladicle/hack
hack is a CLI tool for supporting programming competitions
https://github.com/ladicle/hack
cli coding-contest
Last synced: 12 months ago
JSON representation
hack is a CLI tool for supporting programming competitions
- Host: GitHub
- URL: https://github.com/ladicle/hack
- Owner: Ladicle
- License: apache-2.0
- Created: 2018-03-11T10:05:17.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T13:52:58.000Z (about 1 year ago)
- Last Synced: 2025-02-01T14:34:31.658Z (about 1 year ago)
- Topics: cli, coding-contest
- Language: Go
- Homepage:
- Size: 256 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Hack
`hack` is a commandline tool to assist your programming content.
## Installation
```bash
go install github.com/Ladicle/hack@latest
```
## Usage
```
Hack assists your programming contest.
Usage:
hack [command]
Available Commands:
add Add resource to the contest directory
go Print path to the directory
help Help about any command
init Create directories and download samples
next Print next quiz directory
open Open current task page
test Test your program
Flags:
--config string path to the configuration file (default "~/.config/hack")
-h, --help help for hack
Use "hack [command] --help" for more information about a command.
```
## Quick Started
Write configuration and save it as a `~/.config/hack` file.
```
atcoder:
user:
pass:
basedir:
```
Initialize contest directory and download samples.
```
$ hack init abc100
Initialize directory for abc100:
✓ Scraping task abc100_a
✓ Scraping sample #1
✓ Scraping sample #2
✓ Scraping sample #3
✓ Scraping task abc100_b
✓ Scraping sample #1
✓ Scraping sample #2
✓ Scraping sample #3
✓ Scraping task abc100_c
✓ Scraping sample #1
✓ Scraping sample #2
✓ Scraping sample #3
```
After writing the code, test and submit it if the program pass all test cases.
```
$ hack test
[AC] Sample #1
[AC] Sample #2
[AC] Sample #3
Copy main.py!
```