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
parent
commit
258e93bc86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/command/command.go
  2. 2
      weed/glog/glog.go
  3. 2
      weed/glog/glog_file.go
  4. 1148
      weed/util/fla9/fla9.go
  5. 2
      weed/weed.go

2
weed/command/command.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"
) )

2
weed/glog/glog.go

@ -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"

2
weed/glog/glog_file.go

@ -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"

1148
weed/util/fla9/fla9.go
File diff suppressed because it is too large
View File

2
weed/weed.go

@ -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"

Loading…
Cancel
Save