Skip to content

A simple CLI tool to quickly spin up latex homework templates; Written entirely in Rust 🦀

License

Notifications You must be signed in to change notification settings

louisunlimited/cdoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdoc

A very tiny cli tool that helps me spin up empty latex homework templates to write homeworks on.

Installation

With Homebrew:

brew tap louisunlimited/cdoc
brew install cdoc

Usage

cdoc --help
Generate LaTeX template for homework!

Usage: cdoc [OPTIONS] --title <TITLE> --course <COURSE> --questions <QUESTIONS>

Options:
  -t, --title <TITLE>          Title of homework
  -c, --course <COURSE>        Course Number
  -a, --author <AUTHOR>        Optional Author's name
  -q, --questions <QUESTIONS>  Number of questions to gererate
  -h, --help                   Print help
  -V, --version                Print version

Configuration

This tool reads optional configuration from a file called ~/.cdocrc in the $HOME directory. If the file is not found, it will create a empty one for you. The configuration file is a file in INI format that looks like this:

[Settings]
Author = "John Doe" # The author of the document, defaults to "John Doe"

# A list of abbreviations for courses that you are taking
[courses]
CS433 = "CS433: Computer System Organization"
CS412 = "CS412: Introduction to Data Mining"
CS425 = "CS425: Distributed Systems"
CS101 = "CS101: Introduction to Programming"

TODO

(These are in no particular order)

  • Move away from string literals to a template file
  • Add a way to specify the output directory
  • Make it be able to read configuation from ~/.cdocrc
  • Automate CI/CD
  • Standardize config reading & handling

About

A simple CLI tool to quickly spin up latex homework templates; Written entirely in Rust 🦀

Resources

License

Stars

Watchers

Forks

Languages