Git Product home page Git Product logo

cpcli's Introduction

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

cpcli's People

Contributors

ericliclair avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.