Skip to content

feat: add xontrib to support Fire in the xonsh shell#656

Open
anki-code wants to merge 4 commits intogoogle:masterfrom
anki-code:patch-1
Open

feat: add xontrib to support Fire in the xonsh shell#656
anki-code wants to merge 4 commits intogoogle:masterfrom
anki-code:patch-1

Conversation

@anki-code
Copy link

@anki-code anki-code commented Mar 20, 2026

Workflow:

xonsh
xpip install fire  # xontrib will be installed with the main package seamlessly.
xontrib load fire

type(@)
# xonsh.built_ins.XonshSessionInterface
fire @ --help
# @ - Xonsh Session Interface

obj = {'var': 'val'}
fire obj var
# val

type(@.env)
# xonsh.environ.Env
fire @.env get USER - upper
# PC

type(aliases)
# xonsh.aliases.Aliases
fire aliases get ls
# ls -G

type(@.imp)
# xonsh.built_ins.InlineImporter
fire @.imp.json dumps --help
# @.imp.json dumps OBJ <flags>
fire @.imp.json dumps '{"a":1}' --indent 4
# {
#    "a": 1
# }

Adds a new CLI tool using Fire in the xonsh shell.
@google-cla
Copy link

google-cla bot commented Mar 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@anki-code anki-code marked this pull request as ready for review March 20, 2026 14:19
Added section on Xonsh shell support with examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant