-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add usage to README.md (and improve some text at the same time)
- Loading branch information
Showing
14 changed files
with
233 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
{ | ||
showButtons = YES; | ||
showCodacy = NO; | ||
createUsage = YES; | ||
}; | ||
authors = | ||
( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% | ||
haveFile = [exists file:"usage.txt"] | ||
usage = nil | ||
|
||
if not haveFile and config.createUsage | ||
pwd = [[NSFileManager defaultManager] currentDirectoryPath] | ||
name = [pwd lastPathComponent] | ||
executable = [pwd stringByAppendingPathComponent:name]; | ||
cmdline = [executable stringByAppendingString:" "]; | ||
cmdline = [cmdline stringByAppendingString:"help"]; | ||
taskInfo = [NSTask mulleStringSystemCallWithCommandString:cmdline] | ||
if taskInfo[ "standardErrorString"] | ||
usage = taskInfo[ "standardErrorString"] | ||
endif | ||
endif | ||
%} | ||
{% if haveFile or usage %} | ||
## Usage | ||
|
||
{% if usage %} | ||
``` | ||
{{ usage }} | ||
``` | ||
{% else %} | ||
``` | ||
{% includes optionally verbatim "usage.txt" %} | ||
``` | ||
{% endif %} | ||
{% else %} | ||
# No usage | ||
{% endif %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ then | |
fi | ||
fi | ||
|
||
|
||
if ! [ ${MULLE_BASHLOADER_SH+x} ] | ||
then | ||
MULLE_BASHLOADER_SH='included' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ then | |
fi | ||
fi | ||
|
||
|
||
if ! [ ${MULLE_BASHLOADER_SH+x} ] | ||
then | ||
MULLE_BASHLOADER_SH='included' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ then | |
fi | ||
fi | ||
|
||
|
||
if ! [ ${MULLE_BASHLOADER_SH+x} ] | ||
then | ||
MULLE_BASHLOADER_SH='included' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ then | |
fi | ||
fi | ||
|
||
|
||
if ! [ ${MULLE_BASHLOADER_SH+x} ] | ||
then | ||
MULLE_BASHLOADER_SH='included' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters