Skip to content

The C++ Command Shell. A light-weight command line interface built for C++ unit testing and scripting.

License

Notifications You must be signed in to change notification settings

aidenszeto/cppcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Size License

The C++ Command Shell

The C++ Command Shell (CPPCS) is a light-weight command line interface built for C++ unit testing and scripting. It provides streamlined C++ file importing (both header and source) to improve the testing of large, chained codebases. For detailed information, feel free to reach out here.

Note: In order to use CPPCS, you must have an adequate distribution g++ installed. For more information, see Installing g++ on Windows

cppcs

Installation

The CPPCS executable can be downloaded here. This executable contains the full command line interface and is ready for use immediately upon download. Alternatively, you can clone this repository, navigate to the root directory of this folder, and download cppcs.exe.

Alternatively, if you would like to comntribute to CPPCS, you may clone/download this repository and make changes to the code. Upon cloning this repository, you can compile and execute CPPCS by running bash startup.sh in the root directory. This will compile the source code based on your local g++ version.

Getting Started

The following commands are supported on CPPCS:

  • CTRL-L: Import a file into the CLI. This will allow you to utilize code (classes, functions, etc) from the imported file when scripting.
  • CTRL-R: Reset the CLI. This clears all commands previously called during the session and resets the editor window.
  • CTRL-X: Exits the CLI. The commands from the most recent session will be available in cache.cpp, which is located in the same directory as the executable.
  • CTRL-Z: Undos the most recent change. The undo stack is cleared every command, so previous commands cannot be undone. To undo a command, reset the CLI.
  • Arrow Keys + Home/End: Navigate around the CLI. The keys will exhibit the typical behavior of a command line interface.

Adding CPPCS to Path

If you would like to make CPPCS accessible from any terminal location, please add the folder containing the downloaded cppcs.exe executable to your PATH. For more information on how to add environment variables to your Windows PATH, see this tutorial and for more information on how to add environment variables to your Linux PATH, see this tutorial. Once CPPCS is added to your path, running cppcs on any command line should bring up The C++ Command Shell.

About

The C++ Command Shell. A light-weight command line interface built for C++ unit testing and scripting.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published