Skip to content

Commit

Permalink
v0.1.5: rw cmdline arg management (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: grm34 <jerem.pardo@tutanota.com>
  • Loading branch information
grm34 authored May 24, 2023
1 parent b3dede0 commit 68c6463
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 112 deletions.
35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- markdownlint-disable-file MD033 -->
<h1 align="center">
<a href="#">
<img alt="mobinfo" height="180px" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo.png">
<img alt="mobinfo" height="160px" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo.png">
</a>
</h1>

Expand All @@ -10,7 +10,7 @@
<img alt="mit" src="https://img.shields.io/badge/license-MIT-blue.svg">
</a>
<a href="https://github.com/grm34/mobinfo/releases">
<img alt="release" src="https://img.shields.io/badge/release-0.1.4-blue.svg">
<img alt="release" src="https://img.shields.io/badge/release-0.1.5-blue.svg">
</a>
<a href="https://github.com/grm34/mobinfo/actions/workflows/mobinfo.yml">
<img alt="updater" src="https://github.com/grm34/mobinfo/actions/workflows/mobinfo.yml/badge.svg">
Expand All @@ -30,7 +30,7 @@ directly from your favorite terminal.

<p align="center">
<a href="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo.gif">
<img width="48%" alt="demo" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo.gif">
<img width="70%" alt="demo" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo.gif">
</a>
</p>

Expand Down Expand Up @@ -102,9 +102,10 @@ FILTERING:
-hl, --highlight Show highlighted specifications.
-HL, --hl-only Show highlighted specs only.
Highlighted specifications are used only by GSMArena.
Highlighted specifications only available on GSMArena.
-F, --filter <filter1,filter2>
-F=<filter>, --filter=<filter1,filter2>
os, chipset, cpu, gpu, models, modelname, nettech, net2g, net3g,
net4g, speed, wlan, bluetooth, gps, sim, nfc, radio, usb, colors,
price, sendors, memoryslot, internalmemory, memoryother, year,
Expand All @@ -120,24 +121,25 @@ RENDERING:
-R, --raw Disable specifications rendering.
-nc, --no-color Disable ANSI colors rendering.
-bc, --basic-color Basic colors instead of 256-colors.
-T=, --theme=light Change 256-colors theme.
-T, --theme <name> Change 256-colors theme.
light - dark (default) - hack
-C=, --foreground= Change foreground colors.
-B=, --background= Change background colors.
-C, --foreground <colors> Change foreground colors.
-B, --background <colors> Change background colors.
The table is divided into seven blocks and it is possible to
change the color of each of them. In order the blocks are:
head1 - head2 - Vsymbol - Hsymbol - Asymbol - row1 - row2
Dark theme (default): --foreground=2,2,233,233,233,140,8
--background=234,234,233,233,233,234,233
Dark theme (default): --foreground 2,2,233,233,233,140,8
--background 234,234,233,233,233,234,233
OTHER:
-h, --help Get help for commands.
-V, --version Show version number and quit.
-v, --verbose Make curl operations more talkative.
Useful for debugging and seeing
what is going on under the hood.
-m=<sec>, --max-time=<sec> Maximum time in seconds that you
-m, --max-time <seconds> Maximum time in seconds that you
allow curl operations to take.
Useful for preventing slow networks
or database going down (default 5).
Expand All @@ -146,13 +148,13 @@ OTHER:
EXAMPLES:
mobinfo --search samsung
mobinfo -s xiaomi mi 11 --filter=name,os,cpu,gpu,memory
mobinfo -f A51 5G UW --filter=status,price --specs-only
mobinfo --brands --filter=name,os,cam,bat --theme=hack
mobinfo -s xiaomi mi 11 --filter name,os,cpu,gpu,memory
mobinfo -f A51 5G UW --filter status,price --specs-only
mobinfo --brands --filter name,os,cam,bat --theme hack
COMPARE:
mobinfo --first iphone XR && mobinfo --first iphone XS
mobinfo -f A51 --filter=cpu && mobinfo -f A52 --filter=cpu
mobinfo -f A51 --filter cpu && mobinfo -f A52 --filter cpu
Report bugs to https://github.com/grm34/mobinfo/issues
```
Expand All @@ -171,6 +173,3 @@ Report bugs to https://github.com/grm34/mobinfo/issues
<img align="center" width="48%" alt="mobinfo_light" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo_light.png">
</a>

<a href="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo_dark.png">
<img align="center" width="48%" alt="mobinfo_hack" src="https://raw.githubusercontent.com/grm34/mobinfo/main/docs/assets/images/mobinfo_dark.png">
</a>
Loading

0 comments on commit 68c6463

Please sign in to comment.