Skip to content

Small Linux command <ca> to help with plain text coding, by simple adding of classes, init new project folders ect... meanwhile for C and C++

Notifications You must be signed in to change notification settings

derfloh205/coding_assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coding_Assistant

Introduction

Coding_Assistant should be an enhancement to everybody who likes to code plain text in linux. It is a simple shell command, providing easy and fast usage and can e.g. be used along with Sublime, Notepad or other Plain Text Editors.

SETUP

Just make it, and then type:

ca install

It will normally ask for superuser rights because it copies itself into the /bin folder

How do I use it?

Simply write "ca", the command you want to use and its options afterward like this:

ca command commandoptions

Commands

init

ca init project_name c

Creates a folder named project_name with a prepared .c file and a Makefile to compile, valgrind or clean this folder.

ca init project_name cpp || ca init project_name c++

Creates a folder named project_name with a Makefile and two folders in it named hFiles and cppFiles. The folders already contain a dummy class and a main.cpp ready to be compiled by the Makefile.

ca add class

In a cpp environment, it creates a dummy class with header and cpp file within the two folders. If you give it a name like:

ca add class name

it will create a class.h and class.cpp with the given name

ca add makefile language

Adds a makefile for the specific given language Also possible:

ca add makefile language -f

The -f flag only works with cpp makefile and makes a folder dependant makefile that compiles h and cpp files out of folders.

ca cppsort || ca c++sort

Sorts the actual folder into hFiles and cppFiles With the -m flag it also creates a folder dependant c++ makefile It changes the includes of your files to keep it compileable

Git Supply

ca git finish -commitname-

Does the following:

git add --all git commit -a -m "-commitname-" git push --all

It supports long Commit-Messages with more than one single word

ca_config Specification:

The ca_config file is here to make it possible for the user to determine some options. It is created when a c or a cpp environment is initated.

It looks like this:

language
option1
option2

For now there will only be the name of the actual environments coding language within!

Coming Soon...

Get Command

This could maybe help you retrieve Information for certain algorithms or other stuff from the net or locally

Icon Command

A own Command to change the icon of your executeable to anything you want ? Why not? Difficulty here is to save that there is an icon applied and apply it evertime you compile it with make simple version i not complicated...

Search Command

Search all your directories from here for a specific word but why? there is already a search option in various browsers.. .. maybe with advanced options? But i dont know what

About

Small Linux command <ca> to help with plain text coding, by simple adding of classes, init new project folders ect... meanwhile for C and C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published