mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Use reStructuredText syntax in example docstring
This commit is contained in:
parent
71e68a26f4
commit
8b743099c4
@ -176,8 +176,9 @@ Documenting Salt modules is easy! Just add a python docstring to the function.
|
|||||||
'''
|
'''
|
||||||
A function to make some spam with eggs!
|
A function to make some spam with eggs!
|
||||||
|
|
||||||
CLI Example:
|
CLI Example::
|
||||||
salt '*' test.spam eggs
|
|
||||||
|
salt '*' test.spam eggs
|
||||||
'''
|
'''
|
||||||
return eggs
|
return eggs
|
||||||
|
|
||||||
@ -234,7 +235,8 @@ function, test.ping:
|
|||||||
Just used to make sure the minion is up and responding
|
Just used to make sure the minion is up and responding
|
||||||
Return True
|
Return True
|
||||||
|
|
||||||
CLI Example:
|
CLI Example::
|
||||||
salt '*' test.ping
|
|
||||||
|
salt '*' test.ping
|
||||||
'''
|
'''
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user