Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go install made possible #112

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
another attempt
  • Loading branch information
f01c33 committed May 11, 2024
commit 6bf6d42018854d54a590e4fbe79a0ccc1f379e55
2 changes: 1 addition & 1 deletion browser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func Open(url string) {
if browser := os.Getenv("github.com/f01c33/circumflex_BROWSER"); browser != "" {
if browser := os.Getenv("github.com/f01c33/clx_BROWSER"); browser != "" {
commandAndArgs := strings.Fields(browser)
command := commandAndArgs[0]
args := append(commandAndArgs[1:], url)
Expand Down
10 changes: 5 additions & 5 deletions bubble/bubble.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"
"os"

"github.com/f01c33/circumflex/categories"
"github.com/f01c33/circumflex/cli"
"github.com/f01c33/clx/categories"
"github.com/f01c33/clx/cli"

"github.com/f01c33/circumflex/bubble/list"
"github.com/f01c33/circumflex/favorites"
"github.com/f01c33/circumflex/settings"
"github.com/f01c33/clx/bubble/list"
"github.com/f01c33/clx/favorites"
"github.com/f01c33/clx/settings"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
Expand Down
8 changes: 4 additions & 4 deletions bubble/list/defaultitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"io"
"strings"

"github.com/f01c33/circumflex/constants/nerdfonts"
"github.com/f01c33/clx/constants/nerdfonts"

"github.com/f01c33/circumflex/constants/category"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/circumflex/syntax"
"github.com/f01c33/clx/constants/category"
"github.com/f01c33/clx/item"
"github.com/f01c33/clx/syntax"

"github.com/nleeper/goment"

Expand Down
42 changes: 21 additions & 21 deletions bubble/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ import (
"strings"
"time"

"github.com/f01c33/circumflex/categories"
"github.com/f01c33/clx/categories"

"github.com/f01c33/circumflex/app"
"github.com/f01c33/clx/app"

"github.com/charmbracelet/bubbles/viewport"

"github.com/f01c33/circumflex/reader"

"github.com/f01c33/circumflex/browser"
"github.com/f01c33/circumflex/bubble/list/message"
"github.com/f01c33/circumflex/bubble/ranking"
"github.com/f01c33/circumflex/cli"
"github.com/f01c33/circumflex/constants/category"
"github.com/f01c33/circumflex/favorites"
"github.com/f01c33/circumflex/header"
"github.com/f01c33/circumflex/help"
"github.com/f01c33/circumflex/history"
"github.com/f01c33/circumflex/hn"
"github.com/f01c33/circumflex/hn/services/hybrid"
"github.com/f01c33/circumflex/hn/services/mock"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/circumflex/screen"
"github.com/f01c33/circumflex/settings"
"github.com/f01c33/circumflex/tree"
"github.com/f01c33/circumflex/validator"
"github.com/f01c33/clx/reader"

"github.com/f01c33/clx/browser"
"github.com/f01c33/clx/bubble/list/message"
"github.com/f01c33/clx/bubble/ranking"
"github.com/f01c33/clx/cli"
"github.com/f01c33/clx/constants/category"
"github.com/f01c33/clx/favorites"
"github.com/f01c33/clx/header"
"github.com/f01c33/clx/help"
"github.com/f01c33/clx/history"
"github.com/f01c33/clx/hn"
"github.com/f01c33/clx/hn/services/hybrid"
"github.com/f01c33/clx/hn/services/mock"
"github.com/f01c33/clx/item"
"github.com/f01c33/clx/screen"
"github.com/f01c33/clx/settings"
"github.com/f01c33/clx/tree"
"github.com/f01c33/clx/validator"

"github.com/charmbracelet/bubbles/paginator"
"github.com/charmbracelet/bubbles/spinner"
Expand Down
2 changes: 1 addition & 1 deletion bubble/list/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package message
import (
"time"

"github.com/f01c33/circumflex/item"
"github.com/f01c33/clx/item"
)

type EditorFinishedMsg struct {
Expand Down
2 changes: 1 addition & 1 deletion categories/categories.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"strings"

"github.com/f01c33/circumflex/constants/category"
"github.com/f01c33/clx/constants/category"
)

type Category string
Expand Down
4 changes: 2 additions & 2 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"strings"

"github.com/f01c33/circumflex/constants/unicode"
"github.com/f01c33/circumflex/settings"
"github.com/f01c33/clx/constants/unicode"
"github.com/f01c33/clx/settings"
)

func Less(input string, config *settings.Config) *exec.Cmd {
Expand Down
2 changes: 1 addition & 1 deletion clx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/f01c33/circumflex/cmd"
import "github.com/f01c33/clx/cmd"

func main() {
rootCmd := cmd.Root()
Expand Down
4 changes: 2 additions & 2 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"strconv"

"github.com/f01c33/circumflex/favorites"
"github.com/f01c33/circumflex/hn/services/hybrid"
"github.com/f01c33/clx/favorites"
"github.com/f01c33/clx/hn/services/hybrid"

"github.com/spf13/cobra"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"os"
"strconv"

"github.com/f01c33/circumflex/less"
"github.com/f01c33/circumflex/reader"
"github.com/f01c33/clx/less"
"github.com/f01c33/clx/reader"

"github.com/f01c33/circumflex/hn/services/hybrid"
"github.com/f01c33/clx/hn/services/hybrid"

"github.com/f01c33/circumflex/cli"
"github.com/f01c33/clx/cli"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/clear.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/f01c33/circumflex/history"
"github.com/f01c33/clx/history"

"github.com/spf13/cobra"
)
Expand Down
10 changes: 5 additions & 5 deletions cmd/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"strconv"
"time"

"github.com/f01c33/circumflex/less"
"github.com/f01c33/clx/less"

"github.com/f01c33/circumflex/hn/services/hybrid"
"github.com/f01c33/clx/hn/services/hybrid"

"github.com/f01c33/circumflex/cli"
"github.com/f01c33/circumflex/screen"
"github.com/f01c33/circumflex/tree"
"github.com/f01c33/clx/cli"
"github.com/f01c33/clx/screen"
"github.com/f01c33/clx/tree"

"github.com/spf13/cobra"
)
Expand Down
20 changes: 10 additions & 10 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"fmt"
"os"

"github.com/f01c33/circumflex/categories"
"github.com/f01c33/clx/categories"

"github.com/f01c33/circumflex/app"
"github.com/f01c33/circumflex/bubble"
"github.com/f01c33/circumflex/cli"
"github.com/f01c33/circumflex/indent"
"github.com/f01c33/circumflex/less"
"github.com/f01c33/circumflex/settings"
"github.com/f01c33/clx/app"
"github.com/f01c33/clx/bubble"
"github.com/f01c33/clx/cli"
"github.com/f01c33/clx/indent"
"github.com/f01c33/clx/less"
"github.com/f01c33/clx/settings"

"github.com/logrusorgru/aurora/v3"
"github.com/spf13/cobra"
Expand All @@ -33,7 +33,7 @@ var (

func Root() *cobra.Command {
rootCmd := &cobra.Command{
Use: "github.com/f01c33/circumflex",
Use: "github.com/f01c33/clx",
Short: "\n" + aurora.Magenta("circumflex").String() + " is a command line tool for browsing Hacker News in your terminal",
Version: app.Version,
Run: func(cmd *cobra.Command, args []string) {
Expand Down Expand Up @@ -126,7 +126,7 @@ func verifyLess(noLessVerify bool) {
if !isValid && currentLessVersion == "" {
flag := aurora.Bold("--no-less-verify").String()
lessCmd := aurora.Magenta("less").String()
clxCmd := aurora.Magenta("github.com/f01c33/circumflex").String()
clxCmd := aurora.Magenta("github.com/f01c33/clx").String()
lessVersion := aurora.Yellow("?").String()

fmt.Printf("Could not verify version of %s\n\n", lessCmd)
Expand All @@ -140,7 +140,7 @@ func verifyLess(noLessVerify bool) {
if !isValid {
flag := aurora.Bold("--no-less-verify").String()
lessCmd := aurora.Magenta("less").String()
clxCmd := aurora.Magenta("github.com/f01c33/circumflex").String()
clxCmd := aurora.Magenta("github.com/f01c33/clx").String()
lessVersion := aurora.Yellow(currentLessVersion).String()

fmt.Printf("Your version of %s is outdated\n\n", lessCmd)
Expand Down
6 changes: 3 additions & 3 deletions cmd/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
_ "embed"
"os"

"github.com/f01c33/circumflex/less"
"github.com/f01c33/circumflex/reader"
"github.com/f01c33/clx/less"
"github.com/f01c33/clx/reader"

"github.com/f01c33/circumflex/cli"
"github.com/f01c33/clx/cli"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/f01c33/circumflex/app"
"github.com/f01c33/clx/app"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions comment/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package comment
import (
"strings"

"github.com/f01c33/circumflex/settings"
"github.com/f01c33/circumflex/syntax"
"github.com/f01c33/clx/settings"
"github.com/f01c33/clx/syntax"

"github.com/logrusorgru/aurora/v3"

Expand Down
4 changes: 2 additions & 2 deletions favorites/bfavorites.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/f01c33/circumflex/file"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/clx/file"
"github.com/f01c33/clx/item"
)

type Favorites struct {
Expand Down
2 changes: 1 addition & 1 deletion header/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/f01c33/circumflex/categories"
"github.com/f01c33/clx/categories"

"github.com/charmbracelet/lipgloss"
)
Expand Down
4 changes: 2 additions & 2 deletions help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/f01c33/circumflex/constants/unicode"
"github.com/f01c33/circumflex/info"
"github.com/f01c33/clx/constants/unicode"
"github.com/f01c33/clx/info"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion history/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path"

"github.com/f01c33/circumflex/file"
"github.com/f01c33/clx/file"
)

type History interface {
Expand Down
2 changes: 1 addition & 1 deletion hn/hn.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package hn

import "github.com/f01c33/circumflex/item"
import "github.com/f01c33/clx/item"

type Service interface {
FetchItems(itemsToFetch int, category int) (items []*item.Item, errMsg string)
Expand Down
10 changes: 5 additions & 5 deletions hn/services/hybrid/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

"github.com/bobesa/go-domain-util/domainutil"

ansi "github.com/f01c33/circumflex/utils/strip-ansi"
ansi "github.com/f01c33/clx/utils/strip-ansi"

"github.com/f01c33/circumflex/app"
"github.com/f01c33/circumflex/constants/category"
"github.com/f01c33/circumflex/endpoints"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/clx/app"
"github.com/f01c33/clx/constants/category"
"github.com/f01c33/clx/endpoints"
"github.com/f01c33/clx/item"

"github.com/go-resty/resty/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions hn/services/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"math/rand"
"time"

"github.com/f01c33/circumflex/constants/category"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/clx/constants/category"
"github.com/f01c33/clx/item"
)

type Service struct{}
Expand Down
6 changes: 3 additions & 3 deletions info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package info
import (
"strings"

"github.com/f01c33/circumflex/constants/nerdfonts"
"github.com/f01c33/clx/constants/nerdfonts"
. "github.com/logrusorgru/aurora/v3"

text "github.com/MichaelMure/go-term-text"
"github.com/f01c33/circumflex/constants/margins"
"github.com/f01c33/circumflex/keymaps"
"github.com/f01c33/clx/constants/margins"
"github.com/f01c33/clx/keymaps"
)

func GetText(screenWidth int, enableNerdFonts bool) string {
Expand Down
4 changes: 2 additions & 2 deletions keymaps/keymaps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package keymaps_test
import (
"testing"

ansi "github.com/f01c33/circumflex/utils/strip-ansi"
ansi "github.com/f01c33/clx/utils/strip-ansi"

"github.com/f01c33/circumflex/keymaps"
"github.com/f01c33/clx/keymaps"

"github.com/stretchr/testify/assert"
)
Expand Down
12 changes: 6 additions & 6 deletions meta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"strconv"

"github.com/f01c33/circumflex/constants/nerdfonts"
"github.com/f01c33/clx/constants/nerdfonts"

"github.com/f01c33/circumflex/comment"
"github.com/f01c33/circumflex/constants/unicode"
"github.com/f01c33/circumflex/item"
"github.com/f01c33/circumflex/settings"
"github.com/f01c33/circumflex/syntax"
"github.com/f01c33/clx/comment"
"github.com/f01c33/clx/constants/unicode"
"github.com/f01c33/clx/item"
"github.com/f01c33/clx/settings"
"github.com/f01c33/clx/syntax"

text "github.com/MichaelMure/go-term-text"

Expand Down
Loading