chore: prepare v2 (#1116)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Drew Smirnoff · committed by GitHub · parent 4f90464 · Browse files · 28 files·+69 added−69 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: drew <me@andrinoff.com>
Diff stats
28 files+69 added−69 removed
- other:+69 added−69 removed
Provenance
- Commit
02d6f06- Tree
97b8da3- Author
Drew Smirnoff <drew@charm.land>- Committer
GitHub <noreply@github.com>- Parent
4f90464
28 files changed+69 added−69 removed
modified:choose/command.go+4 added-4 removed
9 unmodified lines10 11 "charm.land/bubbles/v2/help"12 "charm.land/bubbles/v2/paginator"13 tea "charm.land/bubbletea/v2"14- "github.com/charmbracelet/gum/internal/stdin"15- "github.com/charmbracelet/gum/internal/timeout"16- "github.com/charmbracelet/gum/internal/tty"17- "github.com/charmbracelet/gum/style"14+ "charm.land/gum/v2/internal/stdin"15+ "charm.land/gum/v2/internal/timeout"16+ "charm.land/gum/v2/internal/tty"17+ "charm.land/gum/v2/style"18 )19 20 // Run provides a shell script interface for choosing between different through21 // options.153 unmodified linesmodified:choose/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options is the customization options for the choose command.10 type Options struct {25 unmodified linesmodified:confirm/command.go+4 added-4 removed
5 unmodified lines6 "os"7 8 "charm.land/bubbles/v2/help"9 tea "charm.land/bubbletea/v2"10- "github.com/charmbracelet/gum/internal/exit"11- "github.com/charmbracelet/gum/internal/stdin"12- "github.com/charmbracelet/gum/internal/timeout"13- "github.com/charmbracelet/gum/style"10+ "charm.land/gum/v2/internal/exit"11+ "charm.land/gum/v2/internal/stdin"12+ "charm.land/gum/v2/internal/timeout"13+ "charm.land/gum/v2/style"14 )15 16 // Run provides a shell script interface for prompting a user to confirm an17 // action with an affirmative or negative answer.54 unmodified linesmodified:confirm/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options is the customization options for the confirm command.10 type Options struct {15 unmodified linesmodified:cursor/cursor.go+1 added-1 removed
2 unmodified lines3 4 import (5 "charm.land/bubbles/v2/textarea"6 "charm.land/bubbles/v2/textinput"7- "github.com/charmbracelet/gum/style"7+ "charm.land/gum/v2/style"8 )9 10 // TextInput applies the given cursor mode and style to the text input.11 func TextInput(i *textinput.Model, mode string, s style.Styles) {15 unmodified linesmodified:file/command.go+2 added-2 removed
7 unmodified lines8 9 "charm.land/bubbles/v2/filepicker"10 "charm.land/bubbles/v2/help"11 tea "charm.land/bubbletea/v2"12- "github.com/charmbracelet/gum/internal/timeout"13- "github.com/charmbracelet/gum/style"12+ "charm.land/gum/v2/internal/timeout"13+ "charm.land/gum/v2/style"14 )15 16 // Run is the interface to picking a file.17 func (o Options) Run() error {62 unmodified linesmodified:file/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options are the options for the file command.10 type Options struct {24 unmodified linesmodified:filter/command.go+5 added-5 removed
9 unmodified lines10 "charm.land/bubbles/v2/help"11 "charm.land/bubbles/v2/textinput"12 "charm.land/bubbles/v2/viewport"13 tea "charm.land/bubbletea/v2"14- "github.com/charmbracelet/gum/internal/files"15- "github.com/charmbracelet/gum/internal/stdin"16- "github.com/charmbracelet/gum/internal/timeout"17- "github.com/charmbracelet/gum/internal/tty"18- "github.com/charmbracelet/gum/style"14+ "charm.land/gum/v2/internal/files"15+ "charm.land/gum/v2/internal/stdin"16+ "charm.land/gum/v2/internal/timeout"17+ "charm.land/gum/v2/internal/tty"18+ "charm.land/gum/v2/style"19 "github.com/charmbracelet/x/ansi"20 "github.com/sahilm/fuzzy"21 )22 152 unmodified linesmodified:filter/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options is the customization options for the filter command.10 type Options struct {38 unmodified linesmodified:format/command.go+2 added-2 removed
12 unmodified lines13 import (14 "fmt"15 "strings"16 17- "github.com/charmbracelet/gum/internal/stdin"18- "github.com/charmbracelet/gum/internal/tty"17+ "charm.land/gum/v2/internal/stdin"18+ "charm.land/gum/v2/internal/tty"19 )20 21 // Run runs the format command.22 func (o Options) Run() error {27 unmodified linesmodified:input/command.go+4 added-4 removed
6 unmodified lines7 8 "charm.land/bubbles/v2/help"9 "charm.land/bubbles/v2/textinput"10 tea "charm.land/bubbletea/v2"11- "github.com/charmbracelet/gum/cursor"12- "github.com/charmbracelet/gum/internal/stdin"13- "github.com/charmbracelet/gum/internal/timeout"14- "github.com/charmbracelet/gum/style"11+ "charm.land/gum/v2/cursor"12+ "charm.land/gum/v2/internal/stdin"13+ "charm.land/gum/v2/internal/timeout"14+ "charm.land/gum/v2/style"15 )16 17 // Run provides a shell script interface for the text input bubble.18 // https://github.com/charmbracelet/bubbles/textinput63 unmodified linesmodified:input/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options are the customization options for the input.10 type Options struct {17 unmodified linesmodified:join/command.go+2 added-2 removed
16 unmodified lines17 18 import (19 "charm.land/lipgloss/v2"20 21- "github.com/charmbracelet/gum/internal/decode"22- "github.com/charmbracelet/gum/internal/tty"21+ "charm.land/gum/v2/internal/decode"22+ "charm.land/gum/v2/internal/tty"23 )24 25 // Run is the command-line interface for the joining strings through lipgloss.26 func (o Options) Run() error {7 unmodified linesmodified:log/options.go+1 added-1 removed
1 package log2 3 import (4- "github.com/charmbracelet/gum/style"4+ "charm.land/gum/v2/style"5 )6 7 // Options is the set of options that can configure a join.8 type Options struct {20 unmodified linesmodified:pager/command.go+2 added-2 removed
5 unmodified lines6 7 "charm.land/bubbles/v2/help"8 "charm.land/bubbles/v2/viewport"9 tea "charm.land/bubbletea/v2"10- "github.com/charmbracelet/gum/internal/stdin"11- "github.com/charmbracelet/gum/internal/timeout"10+ "charm.land/gum/v2/internal/stdin"11+ "charm.land/gum/v2/internal/timeout"12 )13 14 // Run provides a shell script interface for the viewport bubble.15 // https://github.com/charmbracelet/bubbles/viewport44 unmodified linesmodified:pager/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options are the options for the pager.10 type Options struct {13 unmodified linesmodified:spin/command.go+3 added-3 removed
4 unmodified lines5 "os"6 7 "charm.land/bubbles/v2/spinner"8 tea "charm.land/bubbletea/v2"9- "github.com/charmbracelet/gum/internal/exit"10- "github.com/charmbracelet/gum/internal/timeout"11- "github.com/charmbracelet/gum/style"9+ "charm.land/gum/v2/internal/exit"10+ "charm.land/gum/v2/internal/timeout"11+ "charm.land/gum/v2/style"12 "github.com/charmbracelet/x/term"13 )14 15 // Run provides a shell script interface for the spinner bubble.67 unmodified linesmodified:spin/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options is the customization options for the spin command.10 type Options struct {14 unmodified linesmodified:style/command.go+2 added-2 removed
7 unmodified lines8 import (9 "errors"10 "strings"11 12- "github.com/charmbracelet/gum/internal/stdin"13- "github.com/charmbracelet/gum/internal/tty"12+ "charm.land/gum/v2/internal/stdin"13+ "charm.land/gum/v2/internal/tty"14 )15 16 // Run provides a shell script interface for the Lip Gloss styling.17 // https://github.com/charmbracelet/lipgloss20 unmodified linesmodified:style/lipgloss.go+1 added-1 removed
1 unmodified line2 3 import (4 "charm.land/lipgloss/v2"5 6- "github.com/charmbracelet/gum/internal/decode"6+ "charm.land/gum/v2/internal/decode"7 )8 9 // ToLipgloss takes a Styles flag set and returns the corresponding10 // lipgloss.Style.39 unmodified linesmodified:table/command.go+4 added-4 removed
6 unmodified lines7 8 "charm.land/bubbles/v2/help"9 "charm.land/bubbles/v2/table"10 tea "charm.land/bubbletea/v2"11+ "charm.land/gum/v2/internal/stdin"12+ "charm.land/gum/v2/internal/timeout"13+ "charm.land/gum/v2/internal/tty"14+ "charm.land/gum/v2/style"15 "charm.land/lipgloss/v2"16 ltable "charm.land/lipgloss/v2/table"13- "github.com/charmbracelet/gum/internal/stdin"14- "github.com/charmbracelet/gum/internal/timeout"15- "github.com/charmbracelet/gum/internal/tty"16- "github.com/charmbracelet/gum/style"17 "golang.org/x/text/encoding"18 "golang.org/x/text/encoding/unicode"19 "golang.org/x/text/transform"20 )161 unmodified linesmodified:table/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options is the customization options for the table command.10 type Options struct {20 unmodified linesmodified:write/command.go+4 added-4 removed
7 unmodified lines8 9 "charm.land/bubbles/v2/help"10 "charm.land/bubbles/v2/textarea"11 tea "charm.land/bubbletea/v2"12- "github.com/charmbracelet/gum/cursor"13- "github.com/charmbracelet/gum/internal/stdin"14- "github.com/charmbracelet/gum/internal/timeout"15- "github.com/charmbracelet/gum/style"12+ "charm.land/gum/v2/cursor"13+ "charm.land/gum/v2/internal/stdin"14+ "charm.land/gum/v2/internal/timeout"15+ "charm.land/gum/v2/style"16 )17 18 // Run provides a shell script interface for the text area bubble.19 // https://github.com/charmbracelet/bubbles/textarea68 unmodified linesmodified:write/options.go+1 added-1 removed
1 unmodified line2 3 import (4 "time"5 6- "github.com/charmbracelet/gum/style"6+ "charm.land/gum/v2/style"7 )8 9 // Options are the customization options for the textarea.10 type Options struct {26 unmodified linesmodified:go.mod+1 added-1 removed
1-module github.com/charmbracelet/gum1+module charm.land/gum/v22 3 go 1.25.134 5 require (51 unmodified linesmodified:gum.go+16 added-16 removed
1 unmodified line2 3 import (4 "github.com/alecthomas/kong"5 6- "github.com/charmbracelet/gum/choose"7- "github.com/charmbracelet/gum/completion"8- "github.com/charmbracelet/gum/confirm"9- "github.com/charmbracelet/gum/file"10- "github.com/charmbracelet/gum/filter"11- "github.com/charmbracelet/gum/format"12- "github.com/charmbracelet/gum/input"13- "github.com/charmbracelet/gum/join"14- "github.com/charmbracelet/gum/log"15- "github.com/charmbracelet/gum/man"16- "github.com/charmbracelet/gum/pager"17- "github.com/charmbracelet/gum/spin"18- "github.com/charmbracelet/gum/style"19- "github.com/charmbracelet/gum/table"20- "github.com/charmbracelet/gum/version"21- "github.com/charmbracelet/gum/write"6+ "charm.land/gum/v2/choose"7+ "charm.land/gum/v2/completion"8+ "charm.land/gum/v2/confirm"9+ "charm.land/gum/v2/file"10+ "charm.land/gum/v2/filter"11+ "charm.land/gum/v2/format"12+ "charm.land/gum/v2/input"13+ "charm.land/gum/v2/join"14+ "charm.land/gum/v2/log"15+ "charm.land/gum/v2/man"16+ "charm.land/gum/v2/pager"17+ "charm.land/gum/v2/spin"18+ "charm.land/gum/v2/style"19+ "charm.land/gum/v2/table"20+ "charm.land/gum/v2/version"21+ "charm.land/gum/v2/write"22 )23 24 // Gum is the command-line interface for Gum.25 type Gum struct {203 unmodified linesmodified:main.go+1 added-1 removed
6 unmodified lines7 "os"8 "runtime/debug"9 10 tea "charm.land/bubbletea/v2"11+ "charm.land/gum/v2/internal/exit"12 "charm.land/lipgloss/v2"13 "github.com/alecthomas/kong"13- "github.com/charmbracelet/gum/internal/exit"14 )15 16 const shaLen = 717 73 unmodified linesmodified:README.md+1 added-1 removed
135 unmodified lines136 137 Or just install it with `go`:138 139 ```bash140-go install github.com/charmbracelet/gum@latest140+go install charm.land/gum/v2@latest141 ```142 143 [releases]: https://github.com/charmbracelet/gum/releases144 343 unmodified lines