Skip to content

:octocat: A Command Line Interface to generate files using templates, organize folders, compile execute and run code. Check out this πŸ‘‡πŸ» repository I maintain using CPCLI πŸ₯·πŸ»

License

Notifications You must be signed in to change notification settings

EricLiclair/CPCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

working issues license

CPCLI

A command line tool to organize your competitive programming folders and create .cpp file from a template, compile, and execute them; right from your terminal.

Installation (Local Install)

Use the package manager pip to install CPCLI.

Step 1:

Clone the repo

git clone https://github.com/EricLiclair/CPCLI.git
Step 2:

Change to root directory

cd CPCLI
Step 3:

Run directly or in a virtual environment (make sure you have python >=3.8.10)

python setup.py install

Alternately, you can install it with pip

pip install .

Installation (From PyPI)

The package is not yet uploaded to PyPI. Once it's up there it will be installed using the python package manager pip.

pip install cpcli

Usage

cpcli create <filename>

This will create a folder named filename in the current directory. This folder will further contain a filename.cpp file using a predefined template.

cpcli run <filename>

This will create an executable in the directory filename using the filename\filename.cpp file and run it.

cpcli delete <filename>

This will check if a subdirectory filename exists in the directory. If it does, it'll force remove all the content of the dir, else throws an error: No such directory exists

Features

All the input output redirecting commands works fine with the run command. For example,

cpcli run filename < input.txt

This will execute the output.exe using the input.txt file as input.

cpcli run filename > output.txt

This will execute the output.exe and create output.txt with the console output of the execution.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

:octocat: A Command Line Interface to generate files using templates, organize folders, compile execute and run code. Check out this πŸ‘‡πŸ» repository I maintain using CPCLI πŸ₯·πŸ»

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •