Skip to content

ryumatag/rustcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rustcoder

RustでAtCoderに参加する際のローカル環境を快適にするためのCLIツール。

何番煎じかは知りませんが、Rustの勉強がてら自分で実装してみたいと思った次第です。

Install

$ cargo install --git https://github.com/ryuma017/rustcoder

Features

実装予定の機能 / TODO

  • ワークスペースを新規作成
    • target を共有するための .cargo/config.toml を生成
    • Gitリポジトリ初期化
    • .gitignoreを生成
  • コンテスト用のcargoパッケージ生成

Usage

$ rustcoder help
rustcoder 0.1.0
Convenient toolchain for AtCoder written in Rust

USAGE:
    rustcoder <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    help     Print this message or the help of the given subcommand(s)
    init     Create workspace for AtCoder
    start    Cerate new workspace for specified contest

ワークスペース初期化

$ rustcoder init [directory]
[directory](default: atcoder_workspace)
    ├── .cargo
    │   └── config.toml
    ├── .git
    └── .gitignore

以下のことを行います。

  • コンテストごとのcargoパッケージを並べるためのワークスペース生成
  • Gitリポジトリ初期化
  • targetを共有するための .cargo/config.tomlなどを生成。

コンテスト用のプロジェクト作成

$ rustcoder start <contest-name>
<contest-name>
    ├── Cargo.toml
    └── src
        └── bin
            ├── a.rs
            ├── b.rs
            ├── c.rs
                ...

該当コンテストページから必要な情報をスクレイピングによって抽出し、必要なバイナリファイルを含んだcargoパッケージを生成します。

About

CLI tool for AtCoder in Rust

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages