Metadata-Version: 2.1
Name: cptool-py
Version: 1.0.2
Summary: CLI for creating competitive programming problem files
Home-page: https://github.com/yourusername/cp-tool
Author: Simon Ashton
Author-email: simonashton.dev@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Description-Content-Type: text/markdown
License-File: LICENSE

# cp-tool
A command-line interface (CLI) for creating competitive programming problem files.

## Installation
To install the cp-tool, use the following pip command:

```bash
pip install cptool-py
```

## Configuration
To set up your templates, copy them to `~/.local/share/cp-tool/template.<extension>`.  
*(If you're using Windows or Mac, please [install Linux](https://github.com/Amog-OS/AmogOS).)*

## Usage
```
cpt <commands> [args]
```

## Commands
- **Create a Problem:**
  ```bash
  cpt problem <name>
  ```
  Creates a folder containing a template for the specified problem name.

- **Create a Contest:**
  ```bash
  cpt contest <num_problems> <name>
  ```
  Creates a folder with `<num_problems>` problem files.

- **Create or Replace a Template:**
  ```bash
  cpt template <file>
  ```
  Creates a new template file or replaces an existing one with the specified name.

If the names contains special characters like '(', you can wrap the entire  name in quotes: "Codeforces Round (Div. 2)"

## Arguments
- **File Extension:**
  ```bash
  --extension=<ext> or -e=<ext>
  ```
  Use this parameter to specify the file extension for the templates and problem files.
  The extension defaults to 'cpp'.

## Automatic Directory Change
To avoid manually changing directories to the newly created folders, you can run the command with:
```bash
source cpt <arguments>
```
Alternatively, you can create an alias in your shell profile to make `cpt` execute with `source` automatically:
```bash
alias cpt='source cpt'
```
