Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 4d8c833

Browse files
added, fixed interval option in zigfi show command
1 parent 56cfb44 commit 4d8c833

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "zigfi"
33
description = "zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets you're watching easily into watchlists."
4-
version = "1.0.0"
4+
version = "1.5.0"
55
authors = ["Aldrin Zigmund Cortez Velasco <aldrinzigmund@tutamail.com>"]
66
license = "AGPL-3.0-or-later"
77
edition = "2021"

PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur
44

55
pkgname=zigfi-bin
6-
pkgver=1.0.0
6+
pkgver=1.5.0
77
pkgrel=1
88
pkgdesc="zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets you're watching easily into watchlists."
99
url="https://github.com/aldrinzigmundv/zigfi"
@@ -12,7 +12,7 @@ arch=("x86_64")
1212
provides=("zigfi")
1313
conflicts=("zigfi")
1414
source=("https://github.com/aldrinzigmundv/zigfi/releases/download/v$pkgver/zigfi-$pkgver-x86_64.tar.gz")
15-
sha256sums=("dd98bd272ac84700e546cd7466ce2ffc774209d38d6d9bbbedd05fe30afa62a9")
15+
sha256sums=("ebc371d005832b6de8e90ca835b7aed929b2d0631c4ae126010090cfc014c915")
1616

1717
package() {
1818
install -Dm755 zigfi -t "$pkgdir/usr/bin"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Here are the things you can do:
1616
```
1717
zigarg (shows "default" watchlist)
1818
zigarg new <watchlist name> <optional: ticker/s>
19-
zigarg show <watchlist name>
19+
zigarg show <watchlist name> <optional: interval> (interval can be "1d", "1mo" or "1y")
2020
zigarg delete <watchlist name>
2121
zigarg add <watchlist name> <ticker/s>
2222
zigarg remove <watchlist name> <ticker/s>

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pub fn help() {
301301
"Commands",
302302
"zigarg (shows \"default\" watchlist)",
303303
"zigarg new <watchlist name> <optional: ticker/s>",
304-
"zigarg show <watchlist name>",
304+
"zigarg show <watchlist name> <optional: interval> (interval can be \"1d\", \"1mo\" or \"1y\")",
305305
"zigarg delete <watchlist name>",
306306
"zigarg add <watchlist name> <ticker/s>",
307307
"zigarg remove <watchlist name> <ticker/s>",

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ fn main() {
2727
display("default", "1d");
2828
} else if arguments.get(1) == Some(&"show".to_string()) {
2929
let mut interval = "1d";
30-
if arguments.exist("1wk") {
31-
interval = "1wk";
32-
}
3330
if arguments.exist("1mo") {
3431
interval = "1mo";
3532
}
33+
if arguments.exist("1y") {
34+
interval = "1y";
35+
}
3636
display(
3737
arguments
3838
.get_value("show")

zigfi-0.1.0-x86_64.tar.gz

-1.55 MB
Binary file not shown.

zigfi-1.0.0-x86_64.tar.gz

-1.51 MB
Binary file not shown.

zigfi-1.5.0-x86_64.tar.gz

1.51 MB
Binary file not shown.

0 commit comments

Comments
 (0)