Tooling¶
Project Management¶
In stratos there is a tool called toolman. toolman is used to create, test, run and build stratos applications.
toolman create app_name
The above command creates a stratos application project.An application project involves,binfolder for the application binaries these are the binraies compiled and run in debug mode.srcfolder fo the application source code.app.conffile for the application configurations.src/main.stfile with main function that prints out a line
An additional optional parameter can be added to specify the project location if none is provided the
pwd(current working directory) is usedtoolman runThe command runs the application using the configurations provided in theapp.conf, this is for debugging as there is a stack trace dump,no/little optimizations.
The current architecture binary is generated, dumped into thebinfolder/toolman get git_url/local_pathThe command get packages from the local path or git url and stores them in a.cachefolder in the compiler path, adds the file inapp.conf.lockfile.
Provided without parameters it will loop through the dependencies in theapp.conffile doing a refetch if version does not match inapp.conf.lockfile or is a new dependancy.toolman buildThis command build static binaries for the specified target platforms,applying compiler optimizations.
The command creates adistfolder, with different subfolders for the different architeres specified in theapp.conffile.toolman testThis command runs test.toolman analysisThis command checks code for vulnrable packages, pedantic code(You followed good practises), dead code inference ,
Code editing¶
Editing Stratos Code.Check out.
Vs code Language Plugin.
Intellij Plugin (Comming soon)