-
Notifications
You must be signed in to change notification settings - Fork 0
Examples and Use Cases
RafaPear edited this page Jun 23, 2025
·
1 revision
This section shows real examples of using CLILib by combining commands, variables and scripting. They demonstrate how to take full advantage of the library in common situations.
var a 10
var b 3
div a b result
print Result: $resultvar x 5
var y 2
expr ($x + 10) * ($y - 1)
var total
print Calculated total: $totalmkdir src
mkdir bin
mkfile README.md
mkfile .gitignore
print Project structure created successfully.Contents of setup.ppc:
var author "Rafael"
var project "CLI Tool"
print Project: $project | print Author: $author
mkdir src | mkdir tests
mkfile README.md
print Setup complete.Run with:
loadscript setup.ppcmeasure expr 100000 * 3000var x 10 | var y 5 | mult x y r | print Result: $rmkcmdtemplate example.json
edit example.json # add your own data
mkcmd example.json
example HelloThese examples show how CLILib can be used effectively — from simple tasks to more complex automation.
Made with ❤️ by Rafael Vermelho Pereira This project is under the MIT License · Contributions are welcome! 🤝 How to Contribute