2
0
mirror of synced 2025-02-22 14:28:14 +00:00

cmd/gomobile: update docs, remove iOS warning

This is not to say that iOS support in the gomobile tool is "ready",
but it is working well enough to qualify as the same level of
experimental as the rest of the tool.

Change-Id: I7aab7a5072b23f051501bbb6bbecdb9c449296a5
Reviewed-on: https://go-review.googlesource.com/12892
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw 2015-07-30 09:59:04 -04:00
parent 68f31e14ae
commit dbb9fceceb
2 changed files with 22 additions and 10 deletions

View File

@ -28,11 +28,10 @@ Commands:
build compile android APK and iOS app
init install android compiler toolchain
install compile android APK and install on device
version print version
Use 'gomobile help [command]' for more information about that command.
NOTE: iOS support is not ready yet.
Build a shared library for android APK and iOS app
@ -65,8 +64,8 @@ installed. Support is not complete.
The -v flag provides verbose output, including the list of packages built.
The build flags -a, -i, -n, -x, and -tags are shared with the build command.
For documentation, see 'go help build'.
The build flags -a, -i, -n, -x, -gcflags, -ldflags, -tags, and -work
are shared with the build command. For documentation, see 'go help build'.
Compile android APK and iOS app
@ -97,8 +96,8 @@ output file name depends on the package built.
The -v flag provides verbose output, including the list of packages built.
The build flags -a, -i, -n, -x, and -tags are shared with the build command.
For documentation, see 'go help build'.
The build flags -a, -i, -n, -x, -gcflags, -ldflags, -tags, and -work are
shared with the build command. For documentation, see 'go help build'.
Install android compiler toolchain
@ -128,7 +127,17 @@ attached mobile device.
Only -target android is supported. The 'adb' tool must be on the PATH.
The build flags -a, -i, -n, -x, and -tags are shared with the build command.
The build flags -a, -i, -n, -x, -gcflags, -ldflags, -tags, and -work are
shared with the build command.
For documentation, see 'go help build'.
Print version
Usage:
gomobile version
Version prints versions of the gomobile binary and tools
*/
package main

View File

@ -116,7 +116,12 @@ func helpDocumentation(path string) {
w.WriteString("\n\n")
w.WriteRune(unicode.ToUpper(r))
w.WriteString(cmd.Short[rlen:])
w.WriteString("\n\nUsage:\n\n\tgomobile " + cmd.Name + " " + cmd.Usage + "\n")
w.WriteString("\n\nUsage:\n\n\tgomobile " + cmd.Name)
if cmd.Usage != "" {
w.WriteRune(' ')
w.WriteString(cmd.Usage)
}
w.WriteRune('\n')
w.WriteString(cmd.Long)
}
@ -172,6 +177,4 @@ Commands:
{{.Name | printf "%-11s"}} {{.Short}}{{end}}
Use 'gomobile help [command]' for more information about that command.
NOTE: iOS support is not ready yet.
`))