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
import (
"code.gitea.io/sdk/gitea"
"errors"
"fmt"
"sync"
"gitea.com/jolheiser/sip/modules/config"
"gitea.com/jolheiser/sip/modules/git"
"code.gitea.io/sdk/gitea"
"github.com/AlecAivazis/survey/v2"
"github.com/urfave/cli/v2"
"go.jolheiser.com/beaver/color"
"sync"
)
var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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