|
@@ -85,18 +85,18 @@ That should return path to *shellfu.sh* and version, respectively.
|
85
|
85
|
And that's also *all* this command does.
|
86
|
86
|
|
87
|
87
|
Next, if you have also installed some modules, you can look around
|
88
|
|
-using `shellfu-doc`:
|
|
88
|
+using `sfdoc`:
|
89
|
89
|
|
90
|
|
- shellfu-doc --lsmods
|
91
|
|
- shellfu-doc inigrep
|
|
90
|
+ sfdoc --lsmods
|
|
91
|
+ sfdoc inigrep
|
92
|
92
|
|
93
|
93
|
This is how you access documentation of modules available on the system.
|
94
|
94
|
You can also access documentation of a modules directly by specifying
|
95
|
95
|
path to the file (the path must contain slash):
|
96
|
96
|
|
97
|
|
- shellfu-doc path/to/my/module.sh
|
|
97
|
+ sfdoc path/to/my/module.sh
|
98
|
98
|
|
99
|
|
-Note that shellfu-doc only works if the module follows Shellfu Style
|
|
99
|
+Note that sfdoc only works if the module follows Shellfu Style
|
100
|
100
|
Guide, in particular the Docstrings section.
|
101
|
101
|
|
102
|
102
|
Next, you can create your first Shellfu-Bash script:
|
|
@@ -130,7 +130,7 @@ This is how above script works:
|
130
|
130
|
2. Using `shellfu import pretty`, we're importing module called "pretty".
|
131
|
131
|
shellfu will figure out where exactly it is.
|
132
|
132
|
|
133
|
|
- 3. If we called `shellfu-doc pretty` in another terminal, we would find
|
|
133
|
+ 3. If we called `sfdoc pretty` in another terminal, we would find
|
134
|
134
|
out that among others, this module contains functions `think`, `debug`,
|
135
|
135
|
`warn` and `die`.
|
136
|
136
|
|
|
@@ -162,7 +162,7 @@ to do is
|
162
|
162
|
my_module.sh is.
|
163
|
163
|
|
164
|
164
|
To get the basic stuff, nothing more is really needed. If you want, however,
|
165
|
|
-your module be explorable by `shellfu-doc`, you need to follow Shellfu Style
|
|
165
|
+your module be explorable by `sfdoc`, you need to follow Shellfu Style
|
166
|
166
|
Guide.
|
167
|
167
|
|
168
|
168
|
|