chore: formatting

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-21 23:51:36 -05:00
parent 9882c94eec
commit 0b30bc8034
3 changed files with 12 additions and 5 deletions

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 (

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

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)