wizlib 2.0.17__tar.gz → 2.0.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 2.0.17
3
+ Version: 2.0.18
4
4
  Summary: Framework for flexible and powerful command-line applications
5
5
  License: MIT
6
6
  Author: Steampunk Wizard
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wizlib"
3
- version = "2.0.17"
3
+ version = "2.0.18"
4
4
  description = "Framework for flexible and powerful command-line applications"
5
5
  authors = ["Steampunk Wizard <wizlib@steampunkwizard.ca>"]
6
6
  license = "MIT"
@@ -33,10 +33,10 @@ class ShellUI(UI):
33
33
  print(file=sys.stderr, flush=True)
34
34
  return chooser.choice_by_key(key)
35
35
 
36
- def get_text(self, prompt):
37
- """Allow the user to input an arbitrary line of text"""
36
+ def get_text(self, prompt='', choices=[], default=''):
37
+ """Allow the user to input an arbitrary line of text, with possible tab
38
+ completion"""
38
39
  sys.stderr.write(prompt)
39
40
  sys.stderr.flush()
40
- value = ShellLineEditor().edit()
41
- # value = input()
41
+ value = ShellLineEditor(choices, default).edit()
42
42
  return value
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes