Skip to content

Commit d872596

Browse files
rubabzsPoppySeedPlehzr
authored andcommitted
Adding an alternative testing code in README.rst (#33)
1 parent 8536ff5 commit d872596

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.rst

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ example:
2727

2828
.. code-block:: python
2929
30+
#!/usr/bin/env python
31+
3032
import osquery
3133
3234
@osquery.register_plugin
@@ -73,6 +75,12 @@ Then start the Python extension:
7375
7476
python ./my_table_plugin.py --socket /Users/USERNAME/.osquery/shell.em
7577
78+
Alternatively, you can also autoload your extension when starting an osquery shell:
79+
80+
.. code-block:: none
81+
82+
osqueryi --extension path_to_my_table_plugin.py
83+
7684
This will register a table called "foobar". As you can see, the table will
7785
return two rows:
7886

0 commit comments

Comments
 (0)