hotfix: Added examples, initial python support

This commit is contained in:
2016-12-11 23:45:21 +01:00
parent 6c5c558087
commit 0564c41976
5 changed files with 68 additions and 1 deletions

View File

@ -0,0 +1,8 @@
hotfix: This hotfix show how to use the bash spinner
info: >
The spinner shows an, um... spinner, while the command executes.
author: Noccy <cvagnetoft@gmail.com>
lang: bash
---
find /home >/dev/null & spinner

10
examples/php-facts.fix Normal file
View File

@ -0,0 +1,10 @@
hotfix: This hotfix show how to use facts in php
info: >
This lets you retrieve some additional system information during
runtime. Use 'hotfix facts' to see all the known facts.
author: Noccy <cvagnetoft@gmail.com>
lang: php
---
echo "Architecture: ".fact('system.arch')."\n";
echo "Distribution: ".fact('lsb.id')."\n";

10
examples/python-facts.fix Normal file
View File

@ -0,0 +1,10 @@
hotfix: This hotfix show how to use facts in python
info: >
This lets you retrieve some additional system information during
runtime. Use 'hotfix facts' to see all the known facts.
author: Noccy <cvagnetoft@gmail.com>
lang: python
---
print "Architecture: " + fact("system.arch")
print "Distribution: " + fact("lsb.id")