mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

* refactor: remove usage of global variables in abbrevs.py * chore: add flake8-mutable to prevent mutable defaults * fix: abbrevs expand test * refactor: add xonsh session singleton * refactor: fix circular errors when using xonshSession as singleton * refactor: remove black magicked builtin attributes * style: black format tests as well * refactor: update tests to use xonsh-session singleton * refactor: update abbrevs to not use builtins * test: remove DummyCommandsCache and patch orig class * fix: failing test_command_completers * test: use monkeypatch to update xession fixture * fix: failing test_pipelines * fix: failing test_main * chore: run test suit as single invocation * test: fix tests/test_xonsh.xsh * refactor: remove builtins from docs/conf.py * fix: mypy error in jobs * fix: test error from test_main * test: close xession error in test_command_completers * chore: use pytest-cov for reporting coverage this will include subprocess calls, and will increase coverage * style:
31 lines
779 B
Python
31 lines
779 B
Python
"""Additional core utilities that are implemented in xonsh. The current list
|
|
includes:
|
|
|
|
* cat
|
|
* echo
|
|
* pwd
|
|
* tee
|
|
* tty
|
|
* yes
|
|
|
|
In many cases, these may have a lower performance overhead than the
|
|
posix command line utility with the same name. This is because these
|
|
tools avoid the need for a full subprocess call. Additionally, these
|
|
tools are cross-platform.
|
|
"""
|
|
from xonsh.xoreutils.cat import cat
|
|
from xonsh.xoreutils.echo import echo
|
|
from xonsh.xoreutils.pwd import pwd
|
|
from xonsh.xoreutils.tee import tee
|
|
from xonsh.xoreutils.tty import tty
|
|
from xonsh.xoreutils.yes import yes
|
|
from xonsh.built_ins import XSH
|
|
|
|
__all__ = ()
|
|
|
|
XSH.aliases["cat"] = cat
|
|
XSH.aliases["echo"] = echo
|
|
XSH.aliases["pwd"] = pwd
|
|
XSH.aliases["tee"] = tee
|
|
XSH.aliases["tty"] = tty
|
|
XSH.aliases["yes"] = yes
|