chore: formatting
This commit is contained in:
@@ -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,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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user