diff options
author | Pacien | 2013-07-01 12:42:28 +0200 |
---|---|---|
committer | Pacien | 2013-07-01 12:42:28 +0200 |
commit | c879511377bdb76615b58b212f030e82fb88d3be (patch) | |
tree | 9c3783284594b98d923e230d361ec76e86200f3b /main.go | |
parent | 7b0b720efbf39ded2f72363d36424281df2b0491 (diff) | |
download | foldaweb-c879511377bdb76615b58b212f030e82fb88d3be.tar.gz |
Replace file manipulation functions by the fcmd package
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,7 @@ package main | |||
22 | import ( | 22 | import ( |
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 | ||
37 | func init() { | 38 | func 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.") |