Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxshell.lib.ush module |GLXUsh |GLXUsh.cmdline_split() |GLXUsh.complete_cat() |GLXUsh.complete_cd() |GLXUsh.complete_chmod() |GLXUsh.complete_du() |GLXUsh.complete_echo() |GLXUsh.complete_head() |GLXUsh.complete_rmdir() |GLXUsh.default() |GLXUsh.do_EOF() |GLXUsh.do_alias() |GLXUsh.do_basename() |GLXUsh.do_cat() |GLXUsh.do_cd() |GLXUsh.do_chmod() |GLXUsh.do_clear() |GLXUsh.do_cp() |GLXUsh.do_date() |GLXUsh.do_df() |GLXUsh.do_dirname() |GLXUsh.do_du() |GLXUsh.do_echo() |GLXUsh.do_env() |GLXUsh.do_exit() |GLXUsh.do_false() |GLXUsh.do_head() |GLXUsh.do_ls() |GLXUsh.do_mkdir() |GLXUsh.do_mv() |GLXUsh.do_pwd() |GLXUsh.do_rm() |GLXUsh.do_rmdir() |GLXUsh.do_sleep() |GLXUsh.do_tail() |GLXUsh.do_tee() |GLXUsh.do_time() |GLXUsh.do_touch() |GLXUsh.do_true() |GLXUsh.do_tty() |GLXUsh.do_umask() |GLXUsh.do_unalias() |GLXUsh.do_uname() |GLXUsh.dow |GLXUsh.emptyline() |GLXUsh.help_alias() |GLXUsh.help_basename() |GLXUsh.help_cat() |GLXUsh.help_cd() |GLXUsh.help_chmod() |GLXUsh.help_clear() |GLXUsh.help_cp() |GLXUsh.help_date() |GLXUsh.help_df() |GLXUsh.help_dirname() |GLXUsh.help_du() |GLXUsh.help_echo() |GLXUsh.help_env() |GLXUsh.help_exit() |GLXUsh.help_false() |GLXUsh.help_head() |GLXUsh.help_ls() |GLXUsh.help_mkdir() |GLXUsh.help_mv() |GLXUsh.help_pwd() |GLXUsh.help_rm() |GLXUsh.help_rmdir() |GLXUsh.help_sleep() |GLXUsh.help_tail() |GLXUsh.help_tee() |GLXUsh.help_time() |GLXUsh.help_touch() |GLXUsh.help_true() |GLXUsh.help_tty() |GLXUsh.help_umask() |GLXUsh.help_unalias() |GLXUsh.help_uname() |GLXUsh.intro |GLXUsh.load_alias() |GLXUsh.loader_mpy |GLXUsh.memory_free |GLXUsh.memory_total |GLXUsh.mon |GLXUsh.onecmd() |GLXUsh.postcmd() |GLXUsh.precmd() |GLXUsh.prompt |GLXUsh.ps1_begin_a_sequence_of_non_printing_characters |GLXUsh.ps1_bell |GLXUsh.ps1_carriage_return |GLXUsh.ps1_clean_up_1 |GLXUsh.ps1_clean_up_2 |GLXUsh.ps1_date |GLXUsh.ps1_end_a_sequence_of_non_printing_characters |GLXUsh.ps1_exit_code |GLXUsh.ps1_hostname |GLXUsh.ps1_hostname_sort |GLXUsh.ps1_newline |GLXUsh.ps1_prompt_sign |GLXUsh.ps1_shell |GLXUsh.ps1_shell_release |GLXUsh.ps1_shell_version |GLXUsh.ps1_time_12_hour |GLXUsh.ps1_time_24_hour |GLXUsh.ps1_time_am_pm |GLXUsh.ps1_username |GLXUsh.ps1_virtual_env |GLXUsh.ps1_working_directory |GLXUsh.ps1_working_directory_basename |GLXUsh.run_multiple_commands() |GLXUsh.run_simple_command() |GLXUsh.update_columns_and_lines_vars() |

© Copyright 2020-2024, Galaxie Shell Team.

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.ush module

glxshell.lib.ush module

class glxshell.lib.ush.GLXUsh[source]

Bases: Cmd, GLXEnviron, GLXAlias

static cmdline_split(s, platform=1)[source]

Multi-platform variant of shlex.split() for command-line splitting. For use with subprocess, for argv injection etc. Using fast REGEX.

platform: ‘this’ = auto from current platform;

1 = POSIX; 0 = Windows/CMD (other values reserved)

static complete_cat(text, line, begidx, endidx)[source]
static complete_cd(text, line, begidx, endidx)[source]
static complete_chmod(text, line, begidx, endidx)[source]
static complete_du(text, line, begidx, endidx)[source]
complete_echo(text, line, begidx, endidx)[source]
static complete_head(text, line, begidx, endidx)[source]
static complete_rmdir(text, line, begidx, endidx)[source]
default(line)[source]

Called on an input line when the command prefix is not recognized.

If this method is not overridden, it prints an error message and returns.

static do_EOF(_)[source]
do_alias(line)[source]
do_basename()
do_cat()
do_cd()
do_chmod()
do_clear()
do_cp()
do_date()
do_df()
do_dirname()
do_du()
do_echo()
do_env()
do_exit()
do_false()
do_head()
do_ls()
do_mkdir()
do_mv()
do_pwd()
do_rm()
do_rmdir()
do_sleep()
do_tail()
do_tee()
do_time()
do_touch()
do_true()
do_tty()
do_umask()
do_unalias()
do_uname()
dow = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
emptyline()[source]

Called when an empty line is entered in response to the prompt.

If this method is not overridden, it repeats the last nonempty command entered.

help_alias()[source]
help_basename()[source]
help_cat()[source]
help_cd()[source]
help_chmod()[source]
help_clear()[source]
help_cp()[source]
help_date()[source]
help_df()[source]
help_dirname()[source]
help_du()[source]
help_echo()[source]
help_env()[source]
help_exit()[source]
help_false()[source]
help_head()[source]
help_ls()[source]
help_mkdir()[source]
help_mv()[source]
help_pwd()[source]
help_rm()[source]
help_rmdir()[source]
help_sleep()[source]
help_tail()[source]
help_tee()[source]
help_time()[source]
help_touch()[source]
help_true()[source]
help_tty()[source]
help_umask()[source]
help_unalias()[source]
help_uname()[source]
intro = '******************************* GLXSH V0.2.6 **********************************\n\nLICENSE WTFPL V2\nLOADER CPYTHON 3.12.3.FINAL.0 \nEXEC PYTHON V3.12.3 (MAIN, JUN 18 2024, 09:43:57) [GCC 11.4.0]\n7.54GB RAM SYSTEM\n4.46GB FREE\n'
load_alias()[source]
loader_mpy = ''
memory_free = '4.46GB FREE\n'
memory_total = '7.54GB RAM SYSTEM\n'
mon = ('???', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
onecmd(line)[source]

Interpret the argument as though it had been typed in response to the prompt.

This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop.

postcmd(stop, line)[source]

Hook method executed just after a command dispatch is finished.

precmd(line)[source]

Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.

property prompt

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

ps1_begin_a_sequence_of_non_printing_characters = re.compile('\\\\\\[\\\\033')
ps1_bell = re.compile('\\\\a')
ps1_carriage_return = re.compile('\\\\r')
ps1_clean_up_1 = re.compile('\\$\\{.*\\}')
ps1_clean_up_2 = re.compile('\\$\\(.*\\)')
ps1_date = re.compile('\\\\d')
ps1_end_a_sequence_of_non_printing_characters = re.compile('\\\\\\]')
ps1_exit_code = re.compile('\\$\\?')
ps1_hostname = re.compile('\\\\H')
ps1_hostname_sort = re.compile('\\\\h')
ps1_newline = re.compile('\\\\n')
ps1_prompt_sign = re.compile('\\\\\\$')
ps1_shell = re.compile('\\\\s')
ps1_shell_release = re.compile('\\\\V')
ps1_shell_version = re.compile('\\\\v')
ps1_time_12_hour = re.compile('\\\\T')
ps1_time_24_hour = re.compile('\\\\t')
ps1_time_am_pm = re.compile('\\\\@')
ps1_username = re.compile('\\\\u')
ps1_virtual_env = re.compile('\\$VIRTUAL_ENV')
ps1_working_directory = re.compile('\\\\w')
ps1_working_directory_basename = re.compile('\\\\W')
run_multiple_commands(line)[source]
run_simple_command(cmd, arg, line)[source]
update_columns_and_lines_vars()[source]

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.ush module

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.