Coder Social home page Coder Social logo

cpproj-cli's Introduction

cpproj-cli

A small cli tool for C++ project management.

Current Abilities

  • Create a C++ project. Includes: src folder, build folder, Makefile, Main.cpp
  • Generate new class files. Updates Makefile to include new files.
  • Remove class files. Updates Makefile to not include removed files.
  • Build project to generate an executable.
  • Run command will build and run the project.

Planned Abilities

  • Adding data members to class with specified type.
  • Generate setters and getters for data members in class

Setup global use

To setup this file for global use create a directory called cpproj in a place that won't get changed. Place the cpproj.rb script in the cpproj directory. Go to the file that holds your paths (on Mac it would be .bash_profile) and add this line: "alias cpproj='ruby /pathToDirectory/cpproj/cpproj.rb' " And thats it! You will be set to use this globally throughout your system.

Usage

*If you haven't setup this file globally then you will have to call on the script like so: ruby /path/to/cpproj.rb

  • Initialize a project
    cpproj init my_project
    This will create a folder called my_project. Directly inside the is a Makefile and build and src folders. Inside src folder there is a Main.cpp file.

  • Create a class
    cpproj create_class ClassName
    This will generate simple .cpp and .hpp files within the src folder with defualt constructor and destructor created for you. This will also update the Makefile to include the new class in compilation.

  • Remove a class
    cpproj remove_class ClassName
    This will remove the class specified from the project and Makefile.

  • Build project
    cpproj build
    This will clean out previous executable and object files and only build project.

  • Run project
    cpproj run
    This will execute build command and then run the exectuable afterwards.

  • Help
    cpproj help
    If you need to have a reminder of all of the commands this will list them and give a brief description of it's functionality.

cpproj-cli's People

Contributors

jmatth11 avatar

Stargazers

Rahul Bhonsale avatar

Watchers

 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.