Repository: pterm/pterm (go)

Issue:
Rename `ListStyle` in theme to `BulletListStyle`
Rename `ListStyle` in theme to `BulletListStyle`. Also rename all other theme options for `BulletList`.

Pull request description:
refactor(theme): change `ListTextStyle` to `BulletListTextStyle`
BREAKING CHANGE: changed `ListTextStyle` to `BulletListTextStyle` in `Theme` and functions connected to `ListTextStyle`.

### Description
Changed `ListTextStyle` to `BulletListTextStyle` in `Theme`.
Changed `ListBulletStyle` to `BulletListBulletStyle` in `Theme`.

### Scope
> What is affected by this pull request?

- [ ] Bug Fix
- [ ] New Feature
- [ ] Documentation
- [x] Other

### Related Issue
Fixes #98 


### To-Do Checklist
- [x] I tested my changes
- [x] I have commented every method that I created/changed
- [x] I updated the examples to fit with my changes
- [x] I have added tests for my newly created methods


Patch:
diff --git a/bulletlist_printer.go b/bulletlist_printer.go
index 38b02324..49615403 100644
--- a/bulletlist_printer.go
+++ b/bulletlist_printer.go
@@ -27,8 +27,8 @@ func NewBulletListItemFromString(text string, padding string) BulletListItem {
 // DefaultListItem contains standards, which can be used to print a ListItem.
 var DefaultListItem = BulletListItem{
 	Bullet:      "•",
-	TextStyle:   &ThemeDefault.ListTextStyle,
-	BulletStyle: &ThemeDefault.ListBulletStyle,
+	TextStyle:   &ThemeDefault.BulletListTextStyle,
+	BulletStyle: &ThemeDefault.BulletListBulletStyle,
 }
 
 // BulletListItem is able to render a ListItem.
@@ -81,7 +81,7 @@ func (p BulletListItem) Srender() string {
 		p.TextStyle = NewStyle()
 	}
 	if p.BulletStyle == nil {
-		p.BulletStyle = &ThemeDefault.ListBulletStyle
+		p.BulletStyle = &ThemeDefault.BulletListBulletStyle
 	}
 	return strings.Repeat(" ", p.Level) + p.BulletStyle.Sprint(p.Bullet) + " " + p.TextStyle.Sprint(p.Text)
 }
@@ -94,8 +94,8 @@ func NewBulletListFromString(s string, padding string) BulletList {
 // DefaultBulletList contains standards, which can be used to print a BulletList.
 var DefaultBulletList = BulletList{
 	Bullet:      "•",
-	TextStyle:   &ThemeDefault.ListTextStyle,
-	BulletStyle: &ThemeDefault.ListBulletStyle,
+	TextStyle:   &ThemeDefault.BulletListTextStyle,
+	BulletStyle: &ThemeDefault.BulletListBulletStyle,
 }
 
 // BulletList is able to render a list.
diff --git a/print.go b/print.go
index f8bb59cf..4b70cc54 100644
--- a/print.go
+++ b/print.go
@@ -37,7 +37,7 @@ func Sprinto(a ...interface{}) string {
 // Spaces are added between operands when neither is a string.
 // It returns the number of bytes written and any write error encountered.
 func Print(a ...interface{}) {
-	if DisableOutput {
+	if Output {
 		return
 	}
 
@@ -76,7 +76,7 @@ func Printf(format string, a ...interface{}) {
 // Spaces are added between operands when neither is a string.
 // It returns the number of bytes written and any write error encountered.
 func Fprint(writer io.Writer, a ...interface{}) {
-	if DisableOutput {
+	if Output {
 		return
 	}
 
@@ -98,7 +98,7 @@ func Fprintln(writer io.Writer, a ...interface{}) {
 // time.Sleep(time.Second)
 // pterm.Oprint("Hello, Earth!")
 func Printo(a ...interface{}) {
-	if DisableOutput {
+	if Output {
 		return
 	}
 
diff --git a/pterm.go b/pterm.go
index 160b6952..9bc984d9 100644
--- a/pterm.go
+++ b/pterm.go
@@ -4,12 +4,22 @@
 package pterm
 
 var (
-	// DisableOutput completely disables output from pterm. Can be used in CLI application quiet mode.
-	DisableOutput = false
+	// Output completely disables output from pterm. Can be used in CLI application quiet mode.
+	Output = false
 	// PrintDebugMessages sets if messages printed by the DebugPrinter should be printed.
 	PrintDebugMessages = false
 )
 
+// EnableOutput enables the output of PTerm.
+func EnableOutput() {
+	Output = true
+}
+
+// DisableOutput disables the output of PTerm.
+func DisableOutput() {
+	Output = false
+}
+
 // EnableDebugMessages enables the output of debug printers.
 func EnableDebugMessages() {
 	PrintDebugMessages = true
diff --git a/theme.go b/theme.go
index d715a14f..00bf5161 100644
--- a/theme.go
+++ b/theme.go
@@ -30,8 +30,8 @@ var (
 		TableHeaderStyle:        Style{FgLightCyan},
 		TableSeparatorStyle:     Style{FgGray},
 		SectionStyle:            Style{Bold, FgYellow},
-		ListTextStyle:           Style{FgDefault},
-		ListBulletStyle:         Style{FgGray},
+		BulletListTextStyle:     Style{FgDefault},
+		BulletListBulletStyle:   Style{FgGray},
 		TreeStyle:               Style{FgGray},
 		TreeTextStyle:           Style{FgDefault},
 		LetterStyle:             Style{FgDefault},
@@ -70,8 +70,8 @@ type Theme struct {
 	TableHeaderStyle        Style
 	TableSeparatorStyle     Style
 	SectionStyle            Style
-	ListTextStyle           Style
-	ListBulletStyle         Style
+	BulletListTextStyle     Style
+	BulletListBulletStyle   Style
 	TreeStyle               Style
 	TreeTextStyle           Style
 	LetterStyle             Style
@@ -169,15 +169,15 @@ func (t Theme) WithDescriptionPrefixStyle(style Style) Theme {
 	return t
 }
 
-// WithListTextStyle returns a new theme with overridden value.
-func (t Theme) WithListTextStyle(style Style) Theme {
-	t.ListTextStyle = style
+// WithBulletListTextStyle returns a new theme with overridden value.
+func (t Theme) WithBulletListTextStyle(style Style) Theme {
+	t.BulletListTextStyle = style
 	return t
 }
 
-// WithListBulletStyle returns a new theme with overridden value.
-func (t Theme) WithListBulletStyle(style Style) Theme {
-	t.ListBulletStyle = style
+// WithBulletListBulletStyle returns a new theme with overridden value.
+func (t Theme) WithBulletListBulletStyle(style Style) Theme {
+	t.BulletListBulletStyle = style
 	return t
 }
 


Test patch:
diff --git a/print_test.go b/print_test.go
index 875be219..30fe4f76 100644
--- a/print_test.go
+++ b/print_test.go
@@ -48,14 +48,14 @@ func TestPrint(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Print(randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -70,14 +70,14 @@ func TestPrintln(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Println(randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -96,7 +96,7 @@ func TestPrintf(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Printf(randomString)
@@ -107,7 +107,7 @@ func TestPrintf(t *testing.T) {
 			Printf("Hello, %s!", "World")
 		})
 		assert.Equal(t, "", out)
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -122,14 +122,14 @@ func TestFprint(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Fprint(w, randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -144,14 +144,14 @@ func TestFprintln(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Fprintln(w, randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -166,14 +166,14 @@ func TestPrinto(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Printo(randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
@@ -188,14 +188,14 @@ func TestFprinto(t *testing.T) {
 	})
 
 	t.Run("disabled output", func(t *testing.T) {
-		DisableOutput = true
+		Output = true
 		for _, randomString := range internal.RandomStrings {
 			out := internal.CaptureStdout(func(w io.Writer) {
 				Fprinto(w, randomString)
 			})
 			assert.Equal(t, "", out)
 		}
-		DisableOutput = false
+		Output = false
 	})
 }
 
diff --git a/pterm_test.go b/pterm_test.go
index de93b637..2ee95c34 100644
--- a/pterm_test.go
+++ b/pterm_test.go
@@ -15,3 +15,14 @@ func TestEnableDebugMessages(t *testing.T) {
 	EnableDebugMessages()
 	assert.True(t, PrintDebugMessages)
 }
+
+func TestEnableOutput(t *testing.T) {
+	DisableOutput()
+	EnableOutput()
+	assert.True(t, Output)
+}
+
+func TestDisableOutput(t *testing.T) {
+	DisableOutput()
+	assert.False(t, Output)
+}
diff --git a/theme_test.go b/theme_test.go
index cb056fd5..5ed8a30f 100644
--- a/theme_test.go
+++ b/theme_test.go
@@ -125,20 +125,20 @@ func TestTheme_WithWarningPrefixStyle(t *testing.T) {
 	assert.Equal(t, s, p2.WarningPrefixStyle)
 }
 
-func TestTheme_WithListBulletStyle(t *testing.T) {
+func TestTheme_WithBulletListBulletStyle(t *testing.T) {
 	s := Style{FgRed, BgBlue, Bold}
 	p := Theme{}
-	p2 := p.WithListBulletStyle(s)
+	p2 := p.WithBulletListBulletStyle(s)
 
-	assert.Equal(t, s, p2.ListBulletStyle)
+	assert.Equal(t, s, p2.BulletListBulletStyle)
 }
 
-func TestTheme_WithListTextStyle(t *testing.T) {
+func TestTheme_WithBulletListTextStyle(t *testing.T) {
 	s := Style{FgRed, BgBlue, Bold}
 	p := Theme{}
-	p2 := p.WithListTextStyle(s)
+	p2 := p.WithBulletListTextStyle(s)
 
-	assert.Equal(t, s, p2.ListTextStyle)
+	assert.Equal(t, s, p2.BulletListTextStyle)
 }
 
 func TestTheme_WithLetterStyle(t *testing.T) {