Imp formatting #17

Merged
jolheiser merged 1 commits from imp into master 2020-05-07 01:09:33 +00:00
18 changed files with 58 additions and 27 deletions

View File

@ -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 (

View File

@ -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"

View File

@ -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{

View File

@ -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"

View File

@ -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{

View File

@ -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"

View File

@ -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{

View File

@ -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{

View File

@ -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"

View File

@ -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{

View File

@ -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{

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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 (

View File

@ -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 {

View File

@ -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