Skip to content

Commit 1916f92

Browse files
committed
readme update + more doc
1 parent c065410 commit 1916f92

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

actions.go

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"github.com/urfave/cli"
77
)
88

9+
// called by executing `xavtool current`
910
func current(c *cli.Context) error {
1011
dir := getWorkingDir()
1112
allFiles := findManifests(dir)
@@ -20,6 +21,7 @@ func current(c *cli.Context) error {
2021
return nil
2122
}
2223

24+
// called by executing `xavtool increment`
2325
func increment(c *cli.Context) error {
2426
dir := getWorkingDir()
2527
allFiles := findManifests(dir)

ios_handler.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func changeiOSPackageVersion(file packageInfo, newVersion string) error {
2929
decoder := plist.NewDecoder(openFile(file.Path))
3030
var data = map[string]interface{}{}
3131
err := decoder.Decode(&data)
32+
33+
// increment version
3234
data["CFBundleVersion"] = newVersion
3335
data["CFBundleShortVersionString"] = newVersion
3436

@@ -40,8 +42,8 @@ func changeiOSPackageVersion(file packageInfo, newVersion string) error {
4042
encoder := plist.NewEncoder(&bufferedData)
4143
encoder.Indent("\t")
4244
err = encoder.Encode(data)
43-
check(err)
4445

46+
check(err)
4547
saveFile(file.Path, bufferedData.Bytes())
4648
return nil
4749
}

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Command-line utility to automatically increase iOS / Android / UWP applications
1010
From source:
1111

1212
```bash
13+
$ go build
14+
$ go test -v
1315
$ go install
1416
$ xavtool --version
1517
xavtool version *.*.*

0 commit comments

Comments
 (0)