~mariusor/motley

4f6dd484987a1c3f611ff043cc30801f4e5ee9fb — Marius Orcsik 5 months ago 4d47f6b
Moved stuff to internal/cmd
3 files changed, 9 insertions(+), 6 deletions(-)

M cmd/main.go
R cmd/control.go => internal/cmd/cmd.go
R cmd/storage_all.go => internal/cmd/storage_all.go
M cmd/main.go => cmd/main.go +5 -3
@@ 2,10 2,12 @@ package main

import (
	"fmt"
	"os"

	"git.sr.ht/~marius/motley/internal/cmd"
	"git.sr.ht/~marius/motley/internal/config"
	"git.sr.ht/~marius/motley/internal/env"
	"gopkg.in/urfave/cli.v2"
	"os"
)

var version = "HEAD"


@@ 15,7 17,7 @@ func main() {
	app.Name = "motley"
	app.Usage = "helper utility to manage a FedBOX instance"
	app.Version = version
	app.Before = Before
	app.Before = cmd.Before
	app.Flags = []cli.Flag{
		&cli.StringFlag{
			Name:  "url",


@@ 41,7 43,7 @@ func main() {
			Usage: "The postgres database user",
		},
	}
	app.Action = TuiAction
	app.Action = cmd.TuiAction

	if err := app.Run(os.Args); err != nil {
		os.Exit(1)

R cmd/control.go => internal/cmd/cmd.go +3 -2
@@ 1,6 1,8 @@
package main
package cmd

import (
	"time"

	tui "git.sr.ht/~marius/motley"
	"git.sr.ht/~marius/motley/internal/config"
	"git.sr.ht/~marius/motley/internal/env"


@@ 9,7 11,6 @@ import (
	"github.com/openshift/osin"
	"github.com/sirupsen/logrus"
	"gopkg.in/urfave/cli.v2"
	"time"
)

var (

R cmd/storage_all.go => internal/cmd/storage_all.go +1 -1
@@ 1,4 1,4 @@
package main
package cmd

import (
	"git.sr.ht/~marius/motley/internal/config"