chore: formatting
This commit is contained in:
1 parent
9882c94eec
commit
0b30bc8034
3 files changed
+12
-5
No files matched your search
@@ -3,10 +3,12 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dokku/dokku/plugins/common"
|
|
||||||
"github.com/dokku/dokku/plugins/logs"
|
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/dokku/dokku/plugins/common"
|
||||||
|
"github.com/dokku/dokku/plugins/logs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -3,10 +3,11 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dokku/dokku/plugins/common"
|
|
||||||
"github.com/dokku/dokku/plugins/logs"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/dokku/dokku/plugins/common"
|
||||||
|
"github.com/dokku/dokku/plugins/logs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// main entrypoint to all subcommands
|
// main entrypoint to all subcommands
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ package logs
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dokku/dokku/plugins/common"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/dokku/dokku/plugins/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CommandDefault displays recent log output
|
// CommandDefault displays recent log output
|
||||||
@@ -12,12 +13,15 @@ func CommandDefault(appName string, num int64, process string, tail, quiet bool)
|
|||||||
if appName == "" {
|
if appName == "" {
|
||||||
return errors.New("Please specify an app to run the command on")
|
return errors.New("Please specify an app to run the command on")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := common.VerifyAppName(appName); err != nil {
|
if err := common.VerifyAppName(appName); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !common.IsDeployed(appName) {
|
if !common.IsDeployed(appName) {
|
||||||
return fmt.Errorf("App %s has not been deployed", appName)
|
return fmt.Errorf("App %s has not been deployed", appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
s := common.GetAppScheduler(appName)
|
s := common.GetAppScheduler(appName)
|
||||||
t := strconv.FormatBool(tail)
|
t := strconv.FormatBool(tail)
|
||||||
q := strconv.FormatBool(quiet)
|
q := strconv.FormatBool(quiet)
|
||||||
|
|||||||
Reference in new issue
Block a user