making a big file

This commit is contained in:
Bel LaPointe
2021-02-25 20:19:44 -06:00
parent cbd287e20e
commit fd67e7033b
3 changed files with 121 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ var (
OAuthServer string
VersionInterval time.Duration
ReadOnly bool
MaxSizeMB int
)
func init() {
@@ -38,6 +39,7 @@ func Refresh() {
as.Append(args.STRING, "oauth", "oauth URL", "")
as.Append(args.DURATION, "version", "duration to mark versions", "0s")
as.Append(args.BOOL, "ro", "read-only mode", false)
as.Append(args.INT, "max-v-size", "max size in mb for versioning", 2)
if err := as.Parse(); err != nil {
panic(err)
}
@@ -67,6 +69,7 @@ func Refresh() {
OAuthServer = as.GetString("oauth")
VersionInterval = as.GetDuration("version")
ReadOnly = as.GetBool("ro")
MaxSizeMB = as.GetInt("max-v-size")
}
const defaultWrapper = `