1
0

Moving this project to version model year.week.minor as well.

This commit is contained in:
Alexander Andreev 2022-03-31 16:10:56 +04:00
parent ebb16384db
commit 0125a1f588
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
3 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Alexander "Arav" Andreev <me@arav.top>
pkgname=dwelling-upload-git
pkgver=1.0.0
pkgver=22.13.0
pkgrel=1
pkgdesc="Arav's Dwelling / Upload"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')

View File

@ -5,6 +5,7 @@ import (
"dwelling-upload/pkg/logging"
"dwelling-upload/pkg/utils"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
@ -14,10 +15,16 @@ import (
var configPath *string = flag.String("conf", "config.yaml", "path to configuration file")
var logToStdout *bool = flag.Bool("log-stdout", false, "write logs to stdout")
var showVersion *bool = flag.Bool("v", false, "show version")
func main() {
flag.Parse()
if *showVersion {
fmt.Println("dwelling-upload-clean Ver. 22.13.0\nCopyright (c) 2022 Alexander \"Arav\" Andreev <me@arav.top>")
return
}
config, err := configuration.LoadConfiguration(*configPath)
if err != nil {
log.Fatalln(err)

View File

@ -8,6 +8,7 @@ import (
"dwelling-upload/pkg/utils"
"dwelling-upload/pkg/watcher"
"flag"
"fmt"
"log"
"os"
"os/signal"
@ -16,10 +17,16 @@ import (
var configPath *string = flag.String("conf", "config.yaml", "path to configuration file")
var logToStdout *bool = flag.Bool("log-stdout", false, "write logs to stdout")
var showVersion *bool = flag.Bool("v", false, "show version")
func main() {
flag.Parse()
if *showVersion {
fmt.Println("dwelling-upload Ver. 22.13.0\nCopyright (c) 2022 Alexander \"Arav\" Andreev <me@arav.top>")
return
}
config, err := configuration.LoadConfiguration(*configPath)
if err != nil {
log.Fatalln(err)