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

Add terminal UI #1593

Merged
merged 48 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
643818b
Init attempt at tui with bubble tea.
hxnyk Jan 6, 2023
5e12847
Add starting and source selection options
hxnyk Jan 13, 2023
acdc10b
Rewrite models into a state machine
mcastorina Jan 20, 2023
f18520f
Update source descriptions
hxnyk Jan 25, 2023
2ae828a
Make subpages implement tea.Model
mcastorina Jan 27, 2023
703ec77
Rename page0 and page1 to be more descriptive
mcastorina Jan 27, 2023
a41d6c1
Adjust styling and adding color consts
hxnyk Jan 27, 2023
9d8ccd1
Add helper generic function to call Update and type cast
mcastorina Jan 28, 2023
58fa1bb
Setup plumbing for source configuration page
mcastorina Jan 28, 2023
383bccf
Use CLI introspection for source configuration (WIP)
mcastorina Jan 30, 2023
326d6e4
Experiment with table view
mcastorina Feb 3, 2023
69dcf93
Replace table with form fields
hxnyk Feb 4, 2023
c2add90
Change 🔒 to 💸
mcastorina Feb 10, 2023
8fc69ee
Copy components from soft-serve
mcastorina Feb 10, 2023
d9484eb
Copy styles from soft-serve
mcastorina Feb 10, 2023
e6ec9d1
Copy common from soft-serve
mcastorina Feb 10, 2023
b55f189
Refactor into pages
mcastorina Feb 27, 2023
8af6bd6
Trying out selector for wizard intro
hxnyk Mar 3, 2023
9fe954e
Use selector with custom View
mcastorina Mar 10, 2023
6efe0c0
Change Item to be an enum
mcastorina Mar 10, 2023
e4cfd42
Add link pages
hxnyk Mar 10, 2023
7add8f2
Update source select to use selector
hxnyk Mar 17, 2023
345ff66
Delete source configure page and add blank tabs
mcastorina Apr 14, 2023
09eef5b
Add tab placeholder pages for configurationi
hxnyk Apr 20, 2023
7bb4190
Added headers and style to each tab
mcastorina May 19, 2023
d5257d0
Update with new sources
hxnyk Jun 24, 2023
6ba77b4
Remove kingpin attribute from SourceItem
mcastorina Jun 25, 2023
17f3988
Add basic form field and source structuring
hxnyk Jun 27, 2023
847a49d
Hookup git form fields with an underlying textinput component
mcastorina Jun 29, 2023
11545db
Update forms for git and github
hxnyk Jun 29, 2023
21e8ae1
Add labels per text input
hxnyk Jun 30, 2023
1e2effb
Add sources and adjust styling
hxnyk Jun 30, 2023
e191b16
add basic trufflehog configuration page
hxnyk Jun 30, 2023
5fff00f
Add skip button to textinputs component
mcastorina Jul 10, 2023
405ec14
Emit and handle textinputs skip/submit button commands
mcastorina Jul 11, 2023
5168c40
Don't quit when q is pressed on the sourceConfigurePage
mcastorina Jul 11, 2023
c6a44ec
Build trufflehog command based on source config vals
hxnyk Jul 12, 2023
824c4d0
Build flags based on truffle config inputs
hxnyk Jul 12, 2023
eaa6eb0
Update summary section
hxnyk Jul 12, 2023
e853db8
Add generated truffle fields
hxnyk Jul 12, 2023
ea1dd8f
update summary to correctly print info
hxnyk Jul 12, 2023
71f202e
Go back a page when escape key is pressed
mcastorina Jul 12, 2023
11a8681
WIP run page list
mcastorina Jul 13, 2023
d4757d5
Allow running trufflehog from the run page
mcastorina Jul 13, 2023
7c77322
Add option to view help docs
hxnyk Jul 21, 2023
0899bb2
comment out unused styles and remove unused types
hxnyk Aug 1, 2023
fdc6ace
Capitalize H in TruffleHog
hxnyk Aug 7, 2023
00be0f8
remove unneeded fmt.Sprintf
hxnyk Aug 8, 2023
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
29 changes: 28 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ require (
github.com/BobuSumisu/aho-corasick v1.0.3
github.com/TheZeroSlave/zapsentry v1.17.0
github.com/aws/aws-sdk-go v1.44.83
github.com/aymanbagabas/go-osc52 v1.2.1
github.com/bill-rich/disk-buffer-reader v0.1.7
github.com/bill-rich/go-syslog v0.0.0-20220413021637-49edb52a574c
github.com/bitfinexcom/bitfinex-api-go v0.0.0-20210608095005-9e0b26f200fb
github.com/bradleyfalzon/ghinstallation/v2 v2.6.0
github.com/charmbracelet/bubbles v0.16.1
github.com/charmbracelet/bubbletea v0.24.1
github.com/charmbracelet/glamour v0.6.0
github.com/charmbracelet/lipgloss v0.7.1
github.com/couchbase/gocb/v2 v2.6.3
github.com/crewjam/rfc5424 v0.1.0
github.com/denisenkom/go-mssqldb v0.12.3
Expand Down Expand Up @@ -45,8 +50,11 @@ require (
github.com/jpillora/overseer v1.1.6
github.com/kylelemons/godebug v1.1.0
github.com/lib/pq v1.10.9
github.com/lrstanley/bubblezone v0.0.0-20221222153816-e95291e2243e
github.com/mattn/go-isatty v0.0.18
github.com/mattn/go-sqlite3 v1.14.17
github.com/mholt/archiver/v4 v4.0.0-alpha.8
github.com/muesli/reflow v0.3.0
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/paulbellamy/ratecounter v0.2.0
github.com/pkg/errors v0.9.1
Expand Down Expand Up @@ -88,9 +96,13 @@ require (
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/andybalholm/brotli v1.0.5 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/benbjohnson/clock v1.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bodgit/plumbing v1.2.0 // indirect
Expand All @@ -99,10 +111,12 @@ require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/connesc/cipherio v0.2.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect
github.com/couchbase/gocbcore/v10 v10.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/docker/cli v23.0.5+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/docker v23.0.5+incompatible // indirect
Expand All @@ -125,6 +139,7 @@ require (
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
Expand All @@ -135,12 +150,19 @@ require (
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/klauspost/pgzip v1.2.5 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/microcosm-cc/bluemonday v1.0.23 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect
github.com/muesli/ansi v0.0.0-20211031195517-c9f0611b6c70 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.1 // indirect
github.com/nwaples/rardecode/v2 v2.0.0-beta.2 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.23.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
Expand All @@ -152,7 +174,9 @@ require (
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/rivo/uniseg v0.4.2 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/skeema/knownhosts v1.2.0 // indirect
github.com/therootcompany/xz v1.0.1 // indirect
Expand All @@ -163,6 +187,8 @@ require (
github.com/xdg-go/scram v1.1.2 // indirect
github.com/xdg-go/stringprep v1.0.4 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
github.com/yuin/goldmark v1.5.2 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
Expand All @@ -171,6 +197,7 @@ require (
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/term v0.10.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.10.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
Expand Down
Loading
Loading