We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795ad79 commit 14fffe7Copy full SHA for 14fffe7
context.go
@@ -44,6 +44,14 @@ func (c *Context) Del(key string) {
44
delete(c.values, key)
45
}
46
47
+// Keys returns all keys in the context.
48
+func (c *Context) Keys() (keys []string) {
49
+ for key := range c.values {
50
+ keys = append(keys, key)
51
+ }
52
+ return
53
+}
54
+
55
// ProgressBar returns the progress bar for the current shell context.
56
func (c *Context) ProgressBar() ProgressBar {
57
return c.progressBar
0 commit comments