Browse Source
Merge pull request #1823 from bingoohuang/master
feature: support command line arguments in a configuration file
pull/1833/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
1152 additions and
4 deletions
-
weed/command/command.go
-
weed/glog/glog.go
-
weed/glog/glog_file.go
-
weed/util/fla9/fla9.go
-
weed/weed.go
|
@ -1,8 +1,8 @@ |
|
|
package command |
|
|
package command |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"flag" |
|
|
|
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
flag "github.com/chrislusf/seaweedfs/weed/util/fla9" |
|
|
"os" |
|
|
"os" |
|
|
"strings" |
|
|
"strings" |
|
|
) |
|
|
) |
|
|
|
@ -74,8 +74,8 @@ import ( |
|
|
"bufio" |
|
|
"bufio" |
|
|
"bytes" |
|
|
"bytes" |
|
|
"errors" |
|
|
"errors" |
|
|
"flag" |
|
|
|
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
flag "github.com/chrislusf/seaweedfs/weed/util/fla9" |
|
|
"io" |
|
|
"io" |
|
|
stdLog "log" |
|
|
stdLog "log" |
|
|
"os" |
|
|
"os" |
|
|
|
@ -20,8 +20,8 @@ package glog |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"errors" |
|
|
"errors" |
|
|
"flag" |
|
|
|
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
flag "github.com/chrislusf/seaweedfs/weed/util/fla9" |
|
|
"os" |
|
|
"os" |
|
|
"os/user" |
|
|
"os/user" |
|
|
"path/filepath" |
|
|
"path/filepath" |
|
|
|
@ -4,8 +4,8 @@ |
|
|
package main |
|
|
package main |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"flag" |
|
|
|
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
flag "github.com/chrislusf/seaweedfs/weed/util/fla9" |
|
|
"io" |
|
|
"io" |
|
|
"math/rand" |
|
|
"math/rand" |
|
|
"os" |
|
|
"os" |
|
|