From b8c456d9e7d8d48e4ffd0edb3aaf220467c3bf45 Mon Sep 17 00:00:00 2001 From: mathob Jehanno Date: Tue, 19 Apr 2022 10:27:13 +0200 Subject: [PATCH] chore(goreleaser): adds goreleaser support and completes readme --- .gitignore | 2 ++ .goreleaser.yaml | 32 ++++++++++++++++++++++++++++++++ README.md | 17 ++++++++++++++++- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 66fd13c..5800750 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..524f4bd --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,32 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - darwin +archives: + - replacements: + darwin: Darwin + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' +brews: +- name: launch-tui + homepage: https://github.com/wecraftforfun/homebrew-tools + tap: + owner: wecraftforfun + name: homebrew-tools diff --git a/README.md b/README.md index ab65060..72f06ab 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,24 @@ Launch-tui is a small TUI app to manage launchD +## Install + +You can either install it by donwloading the archive, uncompress it and add the folder to your path or by using homebrew : + +`brew tap wecraftforfun/tools` + +then + +`brew install launch-tui` + ## Features +### Available + - You can load and unload an Agent, list them (it's looking for agent in your `~/Library/LaunchAgents` folder). - You can start or stop an agent -- You can add a new agent using a user-friendly form that will create your `.plist` for you. - You can delete an agent (it will erase the associated `.plist` file from your disk) + +### Planned + +- You can add a new agent using a user-friendly form that will create your `.plist` for you.