Commit graph

426 commits

Author SHA1 Message Date
Alex Goodman
bcebe0491c normalize application config and logging 2021-02-15 13:13:08 -05:00
dwillist
ae89e3dc2c create constructors package, move viewmodel initialization into this package
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-14 17:23:30 -05:00
dwillist
13c58c0055 refactor keybinding structures into separate package
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-06 12:47:28 -05:00
dwillist
a7a0db6d90 update keybindings to use a file similar to original dive.config file (just requires caseing changes)
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-01 01:32:34 -05:00
dwillist
e87055b5fa respect dive.config view settings
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:31:42 -05:00
dwillist
95a88d5be0 add TreeViewModel#GetHiddenFileType tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:13:52 -05:00
dwillist
95387df56f update keybinding display to not carry and state
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:07:16 -05:00
dwillist
43c0b96bac add mock based viewmodel tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-20 17:36:15 -05:00
dwillist
a11e9c1cf2 update colorization to inherit settings from terminal
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-19 15:12:14 -05:00
dwillist
abee6a60f1 update formatting & refactor to pass unit tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-19 00:46:37 -05:00
dwillist
adbd9d793f remove CNB specific logic for now
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 20:51:36 -05:00
dwillist
9f745c7c8b update styling and improve keybinding display
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 20:07:33 -05:00
dwillist
cf5af7d5b5 add keybinding options that may be added to views
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 14:34:59 -05:00
dwillist
90cc80430e add keybinding menu
- update displayed keybindings as focus changes
- highlight toggleable keys

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-17 02:18:11 -05:00
dwillist
d2e5ac1e5a update colorization and formatting of output
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-15 00:33:41 -05:00
dwillist
fb4644cf13 add keybindings to grid that separates layerview from filetree
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-13 00:19:24 -05:00
dwillist
be945d3501 updates to layer_primitive
- add custom keybindings
- add pagedown functionality (should be factored out evenutally)
- add toggleable layer compare modes

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-12 23:53:52 -05:00
dwillist
92ce00a1a9 viper configured filetree keybindings
- implement remaining filetree navegation commands

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-04 00:03:02 -05:00
Daniel Thornton
00a1b771a8
Update runtime/ui/app.go
Co-authored-by: Changsu <imcxsu@gmail.com>
2021-01-01 22:18:59 -05:00
dwillist
52b326c040 hide image details and layer details for height constrained windows
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-19 12:28:19 -05:00
dwillist
6666e841eb formatting and import changes using goimports 2020-12-19 02:37:20 -05:00
dwillist
d93c673810 add visible grid component that allows us to hide views and re-allocate the available space
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-19 02:31:44 -05:00
dwillist
feea882d8e Merge branch 'update_views' of github.com:dwillist/dive into update_views 2020-12-13 22:17:52 -05:00
Dan
1c21a17c11 make ui views hidable, Hide filter view when not in use
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-13 21:17:49 -05:00
Alex Goodman
4c59494131 add wrapper for dive-like borderless/title style 2020-12-12 11:21:28 -05:00
dwillist
38ccd19ccb extend typical views with a new one displaying fake CNB content
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-30 13:00:12 -04:00
dwillist
9b01bc02d5 refactor to add composable viewmodels
- fix filetree printing

Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-29 17:19:16 -04:00
dwillist
e2dbdcd3e7 add filterview & update filetree drawing
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-28 20:16:18 -04:00
dwillist
da7020ad87 implement general behavior using tview
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-23 19:09:12 -04:00
Alex Goodman
bed359c3cf
Merge pull request #320 from gliptak/patch-2
Bring Go current for CircleCI
2020-09-26 00:04:01 -04:00
Alex Goodman
92bcd30467
Merge pull request #321 from gliptak/patch-3
Bring Go current for GH build
2020-09-26 00:03:29 -04:00
Alex Goodman
7da7e2d1f1
Merge pull request #313 from MaxPeal/patch-1
update to alpine 3..12
2020-09-26 00:03:01 -04:00
Alex Goodman
3858fd2d68
Merge pull request #319 from gliptak/patch-1
Bring Alpine to 3.12 in Dockerfile
2020-09-26 00:02:11 -04:00
Gábor Lipták
62d2c64dc6
Bring Go current for GH build 2020-09-25 16:17:34 -04:00
Gábor Lipták
1c4bb9a112
Bring Go current for CircleCI 2020-09-25 16:15:16 -04:00
Gábor Lipták
4961bb3eb4
Bring Alpine to 3.12 in Dockerfile 2020-09-25 16:13:18 -04:00
Alex Goodman
2db716d191
Merge pull request #317 from lpmi-13/typo_fix
fix simple typos
2020-09-14 06:43:30 -04:00
Adam Leskis
d06c3cfb30 fix simple typos 2020-09-14 10:04:57 +01:00
MaxPeal
04ecad57d6
update to alpine 3..12 2020-09-09 04:36:51 +02:00
Alex Goodman
103b05f3c0
Merge pull request #290 from tklauser/go-mod-tidy
Tidy up go dependencies
2020-05-13 10:56:35 -04:00
Tobias Klauser
322c46fb3e Tidy up go dependencies
Run `go mod tidy` to tidy up unused hashes in `go.sum` and remove the
unused `golang.org/x/crypto` dependency from `go.mod`.
2020-05-13 16:54:50 +02:00
Alex Goodman
d8ce26d45a
Merge pull request #291 from tklauser/remove-unnecessary-fmt-sprintf
Remove unnecessary use of fmt.Sprintf
2020-05-13 10:52:44 -04:00
Alex Goodman
8fe31e82ee
Merge pull request #289 from abitrolly/patch-1
Require golang 1.10+ (closes #278)
2020-05-13 10:52:20 -04:00
Tobias Klauser
915e5ba8ab Remove unnecessary use of fmt.Sprintf
Fixes the following staticcheck error:

```
 ##[error]runtime/ui/view/layer.go:304:17: S1039: unnecessary use of fmt.Sprintf (gosimple)
			headerStr += fmt.Sprintf("\nLayer")
			             ^
```
2020-03-26 10:46:12 +01:00
Anatoli Babenia
f5b5a42a3d
Fix linter S1039: unnecessary use of fmt.Sprintf (gosimple)
https://github.com/wagoodman/dive/runs/526866415#step:7:14
2020-03-23 11:39:39 +03:00
Anatoli Babenia
86ac01b25f
Require golang 1.10+ (closes #278) 2020-03-23 11:30:22 +03:00
Alex Goodman
c6bb2372a8
Merge pull request #287 from wagoodman/ignore-parse-errors
Optionally ignore image archive parse errors
2020-03-08 09:03:55 -04:00
Alex Goodman
76631e3313
fix import 2020-03-08 08:57:48 -04:00
Alex Goodman
adc3e19822
Merge branch 'master' into ignore-parse-errors 2020-03-08 08:53:13 -04:00
Alex Goodman
f9e29dce4d
Merge pull request #283 from abitrolly/sourceconfig
Allow setting `source` in config file (fixes #267)
2020-03-08 08:23:11 -04:00