1
0
mirror of https://gitea.com/jolheiser/sip synced 2024-11-22 19:51:58 +01:00

Imp formatting (#17)

Ran imp

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/jolheiser/sip/pulls/17
This commit is contained in:
John Olheiser 2020-05-07 01:09:31 +00:00
parent 0a6162ad05
commit 448e12ce38
18 changed files with 58 additions and 27 deletions

@ -1,15 +1,17 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"errors" "errors"
"fmt" "fmt"
"sync"
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"gitea.com/jolheiser/sip/modules/git" "gitea.com/jolheiser/sip/modules/git"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"sync"
) )
var ( var (

@ -2,6 +2,7 @@ package cmd
import ( import (
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"

@ -1,19 +1,21 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"errors" "errors"
"fmt" "fmt"
"os"
"strconv"
"strings"
"gitea.com/jolheiser/sip/modules/csv" "gitea.com/jolheiser/sip/modules/csv"
"gitea.com/jolheiser/sip/modules/markdown" "gitea.com/jolheiser/sip/modules/markdown"
"gitea.com/jolheiser/sip/modules/sdk" "gitea.com/jolheiser/sip/modules/sdk"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"os"
"strconv"
"strings"
) )
var Issues = cli.Command{ var Issues = cli.Command{

@ -1,9 +1,11 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"fmt" "fmt"
"gitea.com/jolheiser/sip/modules/markdown" "gitea.com/jolheiser/sip/modules/markdown"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"

@ -1,17 +1,19 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"errors" "errors"
"fmt" "fmt"
"os"
"os/exec"
"strconv"
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/huandu/xstrings" "github.com/huandu/xstrings"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"os"
"os/exec"
"strconv"
) )
var PullsCheckout = cli.Command{ var PullsCheckout = cli.Command{

@ -1,10 +1,12 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"fmt" "fmt"
"gitea.com/jolheiser/sip/modules/git" "gitea.com/jolheiser/sip/modules/git"
"gitea.com/jolheiser/sip/modules/markdown" "gitea.com/jolheiser/sip/modules/markdown"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"

@ -1,13 +1,15 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"fmt" "fmt"
"strconv"
"gitea.com/jolheiser/sip/modules/git" "gitea.com/jolheiser/sip/modules/git"
"gitea.com/jolheiser/sip/modules/sdk" "gitea.com/jolheiser/sip/modules/sdk"
"code.gitea.io/sdk/gitea"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"strconv"
) )
var PullsStatus = cli.Command{ var PullsStatus = cli.Command{

@ -1,14 +1,16 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"fmt" "fmt"
"os"
"gitea.com/jolheiser/sip/modules/csv" "gitea.com/jolheiser/sip/modules/csv"
"gitea.com/jolheiser/sip/modules/markdown" "gitea.com/jolheiser/sip/modules/markdown"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"os"
) )
var Release = cli.Command{ var Release = cli.Command{

@ -1,9 +1,11 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"fmt" "fmt"
"gitea.com/jolheiser/sip/modules/git" "gitea.com/jolheiser/sip/modules/git"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"

@ -1,12 +1,14 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea" "strconv"
"gitea.com/jolheiser/sip/modules/sdk" "gitea.com/jolheiser/sip/modules/sdk"
"code.gitea.io/sdk/gitea"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"strconv"
) )
var Repo = cli.Command{ var Repo = cli.Command{

@ -1,12 +1,13 @@
package cmd package cmd
import ( import (
"strings"
"code.gitea.io/sdk/gitea" "code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"
"strings"
) )
var RepoCreate = cli.Command{ var RepoCreate = cli.Command{

@ -2,6 +2,7 @@ package cmd
import ( import (
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"go.jolheiser.com/beaver/color" "go.jolheiser.com/beaver/color"

@ -1,9 +1,11 @@
package cmd package cmd
import ( import (
"code.gitea.io/sdk/gitea"
"errors" "errors"
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"

@ -2,7 +2,9 @@ package cmd
import ( import (
"fmt" "fmt"
"gitea.com/jolheiser/sip/modules/config" "gitea.com/jolheiser/sip/modules/config"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"

@ -1,10 +1,12 @@
package main package main
import ( import (
"os"
"gitea.com/jolheiser/sip/cmd" "gitea.com/jolheiser/sip/cmd"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"os"
) )
var Version = "develop" var Version = "develop"

@ -2,11 +2,12 @@ package config
import ( import (
"fmt" "fmt"
"os"
"path"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"github.com/mitchellh/go-homedir" "github.com/mitchellh/go-homedir"
"go.jolheiser.com/beaver" "go.jolheiser.com/beaver"
"os"
"path"
) )
var ( var (

@ -1,9 +1,10 @@
package markdown package markdown
import ( import (
"strings"
"github.com/charmbracelet/glamour" "github.com/charmbracelet/glamour"
"github.com/kyokomi/emoji" "github.com/kyokomi/emoji"
"strings"
) )
func normalizeNewlines(s string) string { func normalizeNewlines(s string) string {

@ -1,9 +1,11 @@
package sdk package sdk
import ( import (
"code.gitea.io/sdk/gitea"
"gitea.com/jolheiser/sip/modules/qualify"
"strings" "strings"
"gitea.com/jolheiser/sip/modules/qualify"
"code.gitea.io/sdk/gitea"
) )
// GetIssues returns all matching Issues from a Gitea instance // GetIssues returns all matching Issues from a Gitea instance