Skip to content

Commit

Permalink
docs: autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Oct 1, 2022
1 parent b14fbe3 commit d5e6ca6
Show file tree
Hide file tree
Showing 43 changed files with 236 additions and 37 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,13 @@
<a name="unreleased"></a>
## [Unreleased]

### Features
- custom select/confirm key for interactive printer
- add flag to disable filter/search for interactive printer


<a name="v0.12.47"></a>
## [v0.12.47] - 2022-09-19
### Features
- adding interactive continue printer

Expand All @@ -16,6 +23,9 @@
- show full handles by default
- use a map for the options

### Reverts
- refactor: use a map for the options


<a name="v0.12.46"></a>
## [v0.12.46] - 2022-09-05
Expand Down Expand Up @@ -1056,7 +1066,8 @@ removed `Header` and put it's content directly into `HeaderPrinter`
- initial commit


[Unreleased]: https://github.com/pterm/pterm/compare/v0.12.46...HEAD
[Unreleased]: https://github.com/pterm/pterm/compare/v0.12.47...HEAD
[v0.12.47]: https://github.com/pterm/pterm/compare/v0.12.46...v0.12.47
[v0.12.46]: https://github.com/pterm/pterm/compare/v0.12.45...v0.12.46
[v0.12.45]: https://github.com/pterm/pterm/compare/v0.12.44...v0.12.45
[v0.12.44]: https://github.com/pterm/pterm/compare/v0.12.43...v0.12.44
Expand Down
37 changes: 37 additions & 0 deletions README.md
Expand Up @@ -1091,6 +1091,43 @@ func main() {

</details>

### interactive_multiselect/custom-keys

![Animation](https://raw.githubusercontent.com/pterm/pterm/master/_examples/interactive_multiselect/custom-keys/animation.svg)

<details>

<summary>SHOW SOURCE</summary>

```go
package main

import (
"fmt"

"atomicgo.dev/keyboard/keys"
"github.com/pterm/pterm"
)

func main() {
var options []string

for i := 0; i < 5; i++ {
options = append(options, fmt.Sprintf("Option %d", i))
}

printer := pterm.DefaultInteractiveMultiselect.WithOptions(options)
printer.Filter = false
printer.KeyConfirm = keys.Enter
printer.KeySelect = keys.Space
selectedOptions, _ := printer.Show()
pterm.Info.Printfln("Selected options: %s", pterm.Green(selectedOptions))
}

```

</details>

### interactive_multiselect/demo

![Animation](https://raw.githubusercontent.com/pterm/pterm/master/_examples/interactive_multiselect/demo/animation.svg)
Expand Down
37 changes: 37 additions & 0 deletions _examples/README.md
Expand Up @@ -963,6 +963,43 @@ func main() {

</details>

### interactive_multiselect/custom-keys

![Animation](https://raw.githubusercontent.com/pterm/pterm/master/_examples/interactive_multiselect/custom-keys/animation.svg)

<details>

<summary>SHOW SOURCE</summary>

```go
package main

import (
"fmt"

"atomicgo.dev/keyboard/keys"
"github.com/pterm/pterm"
)

func main() {
var options []string

for i := 0; i < 5; i++ {
options = append(options, fmt.Sprintf("Option %d", i))
}

printer := pterm.DefaultInteractiveMultiselect.WithOptions(options)
printer.Filter = false
printer.KeyConfirm = keys.Enter
printer.KeySelect = keys.Space
selectedOptions, _ := printer.Show()
pterm.Info.Printfln("Selected options: %s", pterm.Green(selectedOptions))
}

```

</details>

### interactive_multiselect/demo

![Animation](https://raw.githubusercontent.com/pterm/pterm/master/_examples/interactive_multiselect/demo/animation.svg)
Expand Down
2 changes: 1 addition & 1 deletion _examples/area/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/barchart/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/barchart/mixed-values/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/barchart/negative-values/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/basictext/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/bigtext/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/box/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/bulletlist/customized/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/bulletlist/demo/animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5e6ca6

Please sign in to comment.