hotfix: Added examples, initial python support
This commit is contained in:
8
examples/bash-spinner.fix
Normal file
8
examples/bash-spinner.fix
Normal 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
10
examples/php-facts.fix
Normal 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
10
examples/python-facts.fix
Normal 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")
|
Reference in New Issue
Block a user