aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPacien2013-07-01 12:42:28 +0200
committerPacien2013-07-01 12:42:28 +0200
commitc879511377bdb76615b58b212f030e82fb88d3be (patch)
tree9c3783284594b98d923e230d361ec76e86200f3b /main.go
parent7b0b720efbf39ded2f72363d36424281df2b0491 (diff)
downloadfoldaweb-c879511377bdb76615b58b212f030e82fb88d3be.tar.gz
Replace file manipulation functions by the fcmd package
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2c0cf81..9b6bf8a 100644
--- a/main.go
+++ b/main.go
@@ -22,6 +22,7 @@ package main
22import ( 22import (
23 "flag" 23 "flag"
24 "fmt" 24 "fmt"
25 "github.com/Pacien/fcmd"
25 "strings" 26 "strings"
26) 27)
27 28
@@ -35,6 +36,8 @@ var settings struct {
35} 36}
36 37
37func init() { 38func init() {
39 fcmd.DefaultPerm = 0755 // -rwxr-xr-x
40
38 // read settings 41 // read settings
39 settings.mode = flag.String("mode", "compiled", "compiled|interactive|dynamic") 42 settings.mode = flag.String("mode", "compiled", "compiled|interactive|dynamic")
40 settings.sourceDir = flag.String("source", ".", "Path to sources directory.") 43 settings.sourceDir = flag.String("source", ".", "Path to sources directory.")