Add snapcraft.yaml

This commit is contained in:
Denis-Cosmin Nutiu 2022-11-18 23:16:57 +02:00
parent f04e19e5e2
commit 391fe23b20
4 changed files with 32 additions and 1 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ hotalert
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
**.snap

2
go.mod
View file

@ -1,6 +1,6 @@
module hotalert module hotalert
go 1.18 go 1.19
require ( require (
github.com/spf13/cobra v1.6.0 github.com/spf13/cobra v1.6.0

View file

@ -3,6 +3,12 @@
## Introduction ## Introduction
hotalert is a command line tool for task execution and alerting. Tasks and alerts are defined in yaml files. hotalert is a command line tool for task execution and alerting. Tasks and alerts are defined in yaml files.
## Installation
**Snapstore**
Get the snap: https://snapcraft.io/hotalert/preview
### Example ### Example
If you want to send a notification to your mobile phone when a keyword is found on a website you can use the If you want to send a notification to your mobile phone when a keyword is found on a website you can use the
`webhook_discord` alerter and the `web_scrape` task function. `webhook_discord` alerter and the `web_scrape` task function.

24
snap/snapcraft.yaml Normal file
View file

@ -0,0 +1,24 @@
name: hotalert
summary: A command line tool for task execution and alerting
description: |
hotalert is a command line tool for task execution and alerting. Tasks and alerts are defined in yaml files.
version: git
grade: stable
base: core20
architectures:
- build-on: amd64
- build-on: arm64
confinement: devmode
apps:
hotalert:
command: bin/hotalert
plugs:
- home
parts:
hotalert:
plugin: go
go-channel: 1.19/stable
source-type: git
source: https://github.com/dnutiu/hotalert