chore: formatting

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-11-22 15:01:36 -05:00
1 parent 9882c94eec
commit 0b30bc8034
3 files changed
+12 -5

No files matched your search

+4 -2
View File
@@ -3,10 +3,12 @@ package main
import (
"flag"
"fmt"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/logs"
"os"
"strconv"
"strings"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/logs"
)
const (
+3 -2
View File
@@ -3,10 +3,11 @@ package main
import (
"flag"
"fmt"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/logs"
"os"
"strings"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/logs"
)
// main entrypoint to all subcommands
+5 -1
View File
@@ -3,8 +3,9 @@ package logs
import (
"errors"
"fmt"
"github.com/dokku/dokku/plugins/common"
"strconv"
"github.com/dokku/dokku/plugins/common"
)
// CommandDefault displays recent log output
@@ -12,12 +13,15 @@ func CommandDefault(appName string, num int64, process string, tail, quiet bool)
if appName == "" {
return errors.New("Please specify an app to run the command on")
}
if err := common.VerifyAppName(appName); err != nil {
return err
}
if !common.IsDeployed(appName) {
return fmt.Errorf("App %s has not been deployed", appName)
}
s := common.GetAppScheduler(appName)
t := strconv.FormatBool(tail)
q := strconv.FormatBool(quiet)