*: switch to golang

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2024-05-25 11:41:39 -04:00
parent 5c9fd8cbda
commit b89aa4d153
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
7 changed files with 144 additions and 16 deletions

View file

@ -9,18 +9,17 @@ default: help
help:
@echo " - help - this text"
@echo " - user-install - install the 'terminal://' handler for only $(USER)"
@echo " - lint - run shellcheck"
@echo " - get-default - see the xdg-settings default handler for 'terminal://' scheme"
user-install:
user-install: terminal-url-open
mkdir -p ~/.local/bin && \
ln -sf $(shell realpath $(SCRIPT_FILE)) ~/.local/bin && \
mkdir -p ~/.local/share/applications && \
ln -sf $(shell realpath $(DESKTOP_FILE)) ~/.local/share/applications/ && \
update-desktop-database ~/.local/share/applications
lint:
shellcheck $(SCRIPT_FILE)
terminal-url-open: terminal-url-open.go
go build -o $@ ./$<
get-default:
xdg-settings get default-url-scheme-handler terminal