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

* Add uname support * Changelog addition * Migration to platform module * Update uptime.py for the last version Merge the original uptime module to a single file Change the bootime() return be stay compatible with xonsh Add support for Haiku , suppose to close #3882 Add dependency from uptime to support to MacOS 10.10 by add _posix.c file. * Update uptime.py for the last version Merge the original uptime module to a single file Change the bootime() return be stay compatible with xonsh Add support for Haiku , suppose to close #3882 Add dependency from uptime to support to MacOS 10.10 by add _posix.c file. * typo fix * black reformat * remove usage of print * black is black * add original test for uptime convert original test via 2to3 black reformat tests * strange syntaxe fixe for flaske8 * black the incredible tool it stop a bug fixe just because it THE tool it want a return for make less readable code * flake8 the famous tool it permit to stop a big fixe without any information's about the trouble * workaround about xonsh CI don't respect docstring specs * RISC OS only comment thing * black is a good jock in a CI * black is a good jock in a CI * roll back uptime.py * look if we can make it work * fixe all i understand * add command in corutils alias * reformat uptime.py with black * fixe version * try with xonsh xp.LIBC lib * black in a CI is a stupid thing * stupid Windows and it \r * use os.linestep * use newline simple wrapper * use newline simple wrapper * use newline simple wrapper * use newline simple wrapper * try osx rollback method * fixe * fixe * a test on window via the CI because i haven't the OS * a test on window via the CI because i haven't the OS * a test on window via the CI because i haven't the OS * fix: black: format * refactor: update uname command now has auto-completions * docs: update news item and fix qa error * refactor: remove unused file * fix: qa imports * refactor: update getting boottime fallback to monotonic time on unix * fix: update haiku compatibility in uptime * refactor: add uptime to aliases * refactor: move xoreutils tests * fix: call aliases using xonsh Co-authored-by: Tuux <tuxa@rtnp.org> Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
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.built_ins import XSH
|
|
from xonsh.platform import ON_POSIX
|
|
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.uname import uname
|
|
from xonsh.xoreutils.umask import umask
|
|
from xonsh.xoreutils.uptime import uptime
|
|
from xonsh.xoreutils.yes import yes
|
|
|
|
__all__ = ()
|
|
|
|
XSH.aliases["cat"] = cat
|
|
XSH.aliases["echo"] = echo
|
|
XSH.aliases["pwd"] = pwd
|
|
XSH.aliases["tee"] = tee
|
|
XSH.aliases["tty"] = tty
|
|
XSH.aliases["uname"] = uname
|
|
XSH.aliases["uptime"] = uptime
|
|
XSH.aliases["yes"] = yes
|
|
XSH.aliases["umask"] = umask
|
|
XSH.aliases["uptime"] = uptime
|
|
|
|
if ON_POSIX:
|
|
from xonsh.xoreutils.ulimit import ulimit
|
|
|
|
XSH.aliases["ulimit"] = ulimit
|