python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
I'm using zsh 5.0.8 on OSX 10.11.6. When I tried to run the generated completion bash for the basic example in README, I got the following error. `_complete-calculatorpy:4: unrecognized modifier...
Closes #309 Having colons on wrapped lines no longer causes missing help-text for multiline arguments, as long as the user follows the Google Python Style Guide for docstring args: use...
This is a bug that should have been fixed long time ago. (#14) However, it seems that the bug appeared again. The issue is that completion for Fire(fn) is missing....
Only the first line of help text is displayed for argument `name`. Thanks @orkun1675 for reporting. def foo(self, name): """Greets name. Arguments: name: The person to greet. This is a...
Hello. In the Group Commands section (https://github.com/google/python-fire/blob/master/docs/guide.md#grouping-commands), the example code is ```python class IngestionStage(object): def run(self): return 'Ingesting! Nom nom nom...' class DigestionStage(object): def run(self, volume=1): return ' '.join(['Burp!'] *...
Currently, fire command does not recognize json dumped booleans i.e. [true/false] and converts them to strings. Is there a workaround for this atm.
Transforms outputs like this: ```yaml message: Keeping your Saturday going! playlists: {"href": "https://api.spotify.com/v1/browse/featured-playlists?timestamp=2017-12-09T19%3A51%3A44&offset=0&limit=1", "items": [{"collaborative": false, "external_urls": {"spotify": "https://open.spotify.com/user/spotify/playlist/37i9dQZF1DX0A8zVl7p82B"}, "href": "https://api.spotify.com/v1/users/spotify/playlists/37i9dQZF1DX0A8zVl7p82B", "id": "37i9dQZF1DX0A8zVl7p82B", "images": [{"height": 300, "url": "https://i.scdn.co/image/b34e37ba62e27a53694016f5fe48ae22043e12f6", "width": 300}],...
Generated #298 Feature. **_Description of the feature:_** Fire displays commands in alphabetical order, this feature allows user to show them in a custom order specified by the user. @varunjohn786