Skip to content

Commit

Permalink
add version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen committed Sep 17, 2021
1 parent ba187cd commit a664304
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.PHONY: all install clean

all: clean README.md
all: clean README.md VERSION PKGBUILD
sed -i -e "s/^SYSZ_VERSION=.*/SYSZ_VERSION=`cat VERSION`/" sysz
sed -i -e "s/^pkgver=.*/pkgver=`cat VERSION`/" PKGBUILD

clean:
rm -f README.md
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Maintainer: Joe Hillenbrand (joehillen) <[email protected]>

pkgname=sysz
pkgver=1.1.0
pkgver=1.2.0
pkgrel=0
pkgdesc="A fzf terminal UI for systemctl"
pkgdesc="fzf terminal UI for systemctl"
arch=("any")
url="https://github.com/joehillen/sysz"
license=("UNLICENSE")
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A [fzf](https://github.com/junegunn/fzf) terminal UI for systemctl

# Features

VERSION: 1.1.0
VERSION: 1.2.0

- See and filter both system and user units simultaneously
- Supports all units types
Expand Down Expand Up @@ -42,7 +42,8 @@ OPTS:
-u, --user Only show --user units
--sys, --system Only show --system units
-s STATE, --state STATE Only show units in STATE (repeatable)
-v, --verbose Print the systemctl command
-V, --verbose Print the systemctl command
-v, --version Print the version
-h, --help Print this message
If no options are given, both system and user units are shown.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.2.0
11 changes: 9 additions & 2 deletions sysz
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -f # disable globbing
shopt -s lastpipe

SYSZ_VERSION=1.2.0

SYSZ_HISTORY=${SYSZ_HISTORY:-${XDG_CACHE_HOME:-~/.cache}/sysz/history}

_sysz_help() {
Expand All @@ -25,7 +27,8 @@ OPTS:
-u, --user Only show --user units
--sys, --system Only show --system units
-s STATE, --state STATE Only show units in STATE (repeatable)
-v, --verbose Print the systemctl command
-V, --verbose Print the systemctl command
-v, --version Print the version
-h, --help Print this message
If no options are given, both system and user units are shown.
Expand Down Expand Up @@ -231,7 +234,11 @@ while [[ -n $1 ]]; do
shift
shift
;;
-v | --verbose)
-v | --version)
echo "$PROG" $SYSZ_VERSION
exit 0
;;
-V | --verbose)
VERBOSE=true
shift
;;
Expand Down

0 comments on commit a664304

Please sign in to comment.