diff --git a/README.md b/README.md index ffd320d..4459df2 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,9 @@ # Viddy -

-viddy -

- Modern `watch` command. -Viddy well, gopher. Viddy well. - -## Demo - -

-viddy -

- +_Note:_ This is the fork of original viddy tool, which provides the ability to import viddy tool a package in the source code. +This fork allows to use viddy to show output data in different juju commands. ## Features @@ -43,7 +33,7 @@ Viddy well, gopher. Viddy well. | b | Toggle ring terminal bell | | d | Toggle diff | | t | Toggle header display | -| ? | Toggle help view | +| ? or h | Toggle help view | | / | Search text | | j | Pager: next line | | k | Pager: previous line | @@ -64,8 +54,7 @@ Viddy well, gopher. Viddy well. "viddy" is Nadsat word meaning to see. Nadsat is fictional argot of gangs in the violent book and movie "A Clockwork Orange". -## Credits - -The gopher's logo of viddy is licensed under the Creative Commons 3.0 Attributions license. +## PS -The original Go gopher was designed by [Renee French](https://reneefrench.blogspot.com/). +The Juju team thanks viddy developers (https://github.com/sachaos/viddy) for creating such a cool 'watch' analog, +and looking forward to switch to original repo after "importing as package" functionality will be introduced. \ No newline at end of file diff --git a/config_test.go b/config_test.go index 41376ef..011fdb1 100644 --- a/config_test.go +++ b/config_test.go @@ -30,7 +30,7 @@ func Test_newConfig(t *testing.T) { noTitle: false, debug: false, }, - theme: theme{ + Theme: theme{ Theme: tview.Theme{ PrimitiveBackgroundColor: 0, ContrastBackgroundColor: 0, @@ -196,8 +196,8 @@ text = "white" c.runtime.cmd = "ls" c.runtime.args = []string{} - c.theme.PrimitiveBackgroundColor = tcell.ColorBlack - c.theme.PrimaryTextColor = tcell.ColorWhite + c.Theme.PrimitiveBackgroundColor = tcell.ColorBlack + c.Theme.PrimaryTextColor = tcell.ColorWhite return c }(), @@ -211,7 +211,7 @@ text = "white" v.SetConfigType("toml") assert.NoError(t, v.ReadConfig(bytes.NewBufferString(tt.configFile))) - got, err := newConfig(v, tt.args) + got, err := NewConfig(v, tt.args) assert.Equal(t, tt.expErr, err) assert.Equal(t, &tt.want, got) })