Skip to content

Commit

Permalink
issue #46 update documentation programming
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyleite committed Mar 5, 2022
1 parent 341cd04 commit 3f3ae9d
Showing 1 changed file with 82 additions and 1 deletion.
83 changes: 82 additions & 1 deletion doc/source/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,65 @@ Generates on the standard output ``C`` skeleton.
$ bh_skel_c
#include <stdio.h>
int main(int argc, char *argv[]) {
int main(int argc, char ***argv[]**) {
return 0;
}
bh_skel_go
---------
Generates on the standard output ``go`` skeleton.

.. note::

Usage

``bh_skel_go``

.. code-block:: bash
$ bh_skel_go
package main
import (
"fmt"
)
func main() {
fmt.Println("test")
}
bh_skel_latex
---------
Generates on the standard output ``latex`` skeleton.

.. note::

Usage

``bh_skel_latex``

.. code-block:: bash
$ bh_skel_latex
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\author{}
\title{}
\begin{document}
\maketitle
\end{document}
bh_skel_python
--------------

Expand All @@ -46,4 +98,33 @@ Generates on the standard output ``python`` skeleton.
if __name__ == '__main__':
bh_skel_yara
--------------
Generates on the standard output ``yara`` skeleton.
.. note::
Usage
``bh_skel_yara``
.. code-block:: bash
$ bh_skel_yara
rule test {
meta:
author = "mb"
description = ""
date = "2022-03-03"
ref = ""
hash = ""
strings:
$a = "test" ascii wide
condition:
all of them
}

0 comments on commit 3f3ae9d

Please sign in to comment.