refactor: move app listing back to common

Without this, we'd need to duplicate some logic or make it more complex via a plugin trigger.
This commit is contained in:
Jose Diaz-Gonzalez committed 2022-02-26 02:55:34 -05:00
1 parent 90eb5462f7
commit ac58b502c5
27 files changed
+83 -128

No files matched your search

+1 -2
View File
@@ -1,14 +1,13 @@
package scheduler
import (
"github.com/dokku/dokku/plugins/apps"
"github.com/dokku/dokku/plugins/common"
)
// CommandReport displays a scheduler report for one or more apps
func CommandReport(appName string, format string, infoFlag string) error {
if len(appName) == 0 {
apps, err := apps.DokkuApps()
apps, err := common.DokkuApps()
if err != nil {
return err
}
+1 -2
View File
@@ -3,7 +3,6 @@ package scheduler
import (
"fmt"
"github.com/dokku/dokku/plugins/apps"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/config"
)
@@ -32,7 +31,7 @@ func TriggerInstall() error {
return fmt.Errorf("Unable to install the scheduler plugin: %s", err.Error())
}
apps, err := apps.DokkuApps()
apps, err := common.DokkuApps()
if err != nil {
return nil
}