Skip to content

Commit 7dbce75

Browse files
authored
Merge pull request #13 from Kilgaloon/development
Slight changes to dir structure and unreachable code
2 parents 0c28e32 + 3a85f3f commit 7dbce75

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ install:
44
mkdir /var/run/leprechaun/
55
touch /var/log/leprechaun/info-client.log
66
touch /var/log/leprechaun/error-client.log
7-
go build
7+
cd bin/ && go build -u leprechaun
88

99
uninstall:
1010
rm -rf /etc/leprechaun
1111
rm -rf /var/log/leprechaun
1212
rm -rf /var/run/leprechaun
1313

14+
build:
15+
cd bin/ && go build -o leprechaun
16+
1417
format:
1518
gofmt -s -w src/
1619

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Leprechaun
22

3+
<<<<<<< HEAD
4+
35
[![Go Report Card](https://goreportcard.com/badge/github.com/Kilgaloon/Leprechaun)](https://goreportcard.com/report/github.com/Kilgaloon/Leprechaun)
46

5-
Current Version: **0.2.0** <br />
7+
Current Version: **0.2.1** <br />
68
Current Release: **Calimero**
79

810
**Leprechaun** is tool where you can schedule your recurring tasks to be performed over and over.

client.go renamed to bin/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
package main
22

33
import (
4-
"./src/client"
4+
"../src/client"
55
"flag"
66
)
77

88
// VERSION of application
99
const (
10-
VERSION = "0.2.0"
10+
VERSION = "0.2.1"
1111
RELEASE = "Calimero"
1212
)
1313

1414
func main() {
1515

16-
iniPath := flag.String("ini_path", "./configs/client.ini", "Path to client .ini configuration")
16+
iniPath := flag.String("ini_path", "../configs/client.ini", "Path to client .ini configuration")
1717
flag.Parse()
1818

1919
client.Start(iniPath)

bin/leprechaun

3.84 MB
Binary file not shown.

src/client/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package client
33
import (
44
"../log"
55
"gopkg.in/ini.v1"
6-
"os"
76
)
87

98
// Config values
@@ -17,7 +16,6 @@ func readConfig(path string) *Config {
1716
cfg, err := ini.Load(path)
1817
if err != nil {
1918
panic("Failed to load ini file")
20-
os.Exit(1)
2119
}
2220

2321
c := &Config{}

src/client/queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func ProcessQueue(queue *Queue, client *Client) {
4949
parts := strings.Fields(step)
5050
head := parts[0]
5151
parts = parts[1:]
52-
// if is internal command of Rainbow
53-
if len(head) >= 7 && head[0:7] == "rainbow" {
52+
// if is internal command of Leprechaun
53+
if len(head) >= 7 && head[0:7] == "internal" {
5454
err := Resolve(head, parts)
5555
if err != nil {
5656
RemoveLock(r.Name, client)

0 commit comments

Comments
 (0)