add info doc

This commit is contained in:
NaixSpirit
2016-03-08 12:31:41 +08:00
parent c00ac7b1a1
commit 09d9e35fcb
2 changed files with 54 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
### 相关指令帮助
`fir help` 命令不仅可以运行在 `fir` 主命令上, 还可以运行在相应子命令上查看相关的帮助
`fir help` 命令不仅可以运行在 `fir` 主命令上, 还可以运行在相应子命令上查看相关的帮助.
```sh
$ fir help

53
doc/info.md Normal file
View File

@@ -0,0 +1,53 @@
### fir info
`fir info` 命令用于查看当前 ipa/apk 相关信息.
```sh
$ fir info -h
Usage:
fir info APP_FILE_PATH
Options:
-a, [--all], [--no-all] # Show all information in application
-T, [--token=TOKEN] # User's API Token at fir.im
-L, [--logfile=LOGFILE] # Path to writable logfile
-V, [--verbose], [--no-verbose] # Show verbose
# Default: true
-q, [--quiet], [--no-quiet] # Silence commands
-h, [--help], [--no-help] # Show this help message and quit
Show iOS/Android app info, support ipa/apk file (aliases: `i`).
```
#### 查看 ipa 相关信息
```sh
$ fir info ./build_ipa.ipa
I, [2016-03-08T12:28:29.310846 #11961] INFO -- : Analyzing ipa file......
I, [2016-03-08T12:28:29.310932 #11961] INFO -- : ✈ -------------------------------------------- ✈
I, [2016-03-08T12:28:29.395706 #11961] INFO -- : type: ios
I, [2016-03-08T12:28:29.395775 #11961] INFO -- : identifier: xx.xxx.build-ipa
I, [2016-03-08T12:28:29.395793 #11961] INFO -- : name: build_ipa
I, [2016-03-08T12:28:29.395805 #11961] INFO -- : display_name: build_ipa
I, [2016-03-08T12:28:29.395817 #11961] INFO -- : build: 1
I, [2016-03-08T12:28:29.395829 #11961] INFO -- : version: 1.0
I, [2016-03-08T12:28:29.396007 #11961] INFO -- : devices: ["fasdfafaf3f4xxxxxxx78aecbc1234567"]
I, [2016-03-08T12:28:29.396057 #11961] INFO -- : release_type: adhoc
I, [2016-03-08T12:28:29.396086 #11961] INFO -- : distribution_name: iOSTeam Provisioning Profile: xx.xxx.* - xxx xx xxxxxx LLC.
I, [2016-03-08T12:28:29.396111 #11961] INFO -- :
```
#### 查看 apk 相关信息
```sh
$ fir info ./test/cases/test_apk.apk
I, [2016-03-08T12:30:25.241278 #12073] INFO -- : Analyzing apk file......
I, [2016-03-08T12:30:25.241363 #12073] INFO -- : ✈ -------------------------------------------- ✈
I, [2016-03-08T12:30:25.250430 #12073] INFO -- : type: android
I, [2016-03-08T12:30:25.250477 #12073] INFO -- : identifier: com.xxx.myapplication
I, [2016-03-08T12:30:25.250496 #12073] INFO -- : name: My Application
I, [2016-03-08T12:30:25.250509 #12073] INFO -- : build: 1
I, [2016-03-08T12:30:25.250520 #12073] INFO -- : version: 1.0
I, [2016-03-08T12:30:25.250532 #12073] INFO -- :
```