The linux commands found in /bin and /usr/bin are numerosos, few people know
how to use and it have no organization. By example there are command useradd, userdel, ..., why not exists a command user (method), like git. Due to it I began to create a mecanism to develop commands using Oriented Object as git.
Context
The context concept is simple and oft used, by example you are in folder
/project/src/class_a/ and you want use make to compile the project. So
you need back to /project, to enter in build and to execute make. Now imagine
that you have a command that returns the project path. Therefore you can create a script, thats allows
to execute the make in any subfolder of project, so like the command git.
Creating a Class
Creating a Method
Parameters
The parameters for the class methods are sent using the idea from natural languages.
The natural languages like portuguese, english and others languages use a simple
struct, that is composed by Nominative Verb Accusative. So the commmand line
for o2cl is not based in imperative verbs as a lot of the linux command, but in completely sentence.
Syntax:
node @{Nomative} verb {Accusative} {preposition supplements}
Example:
node @./teste add folder -mod 755
node @./teste add folder with 755