< Home - < Back

python-cmd2


Information about the package, python-cmd2, which is shipped with common Linux distributions. The python-cmd2 package is designed for, Extra features for standard library's cmd module.


Package Name:

python-cmd2

Summary:

Extra features for standard library's cmd module

Description:

Enhancements for standard library's cmd module. Drop-in replacement adds several features for command-prompt tools: * Searchable command history (commands: "hi", "li", "run") * Load commands from file, save to file, edit commands in file * Multi-line commands * Case-insensitive commands * Special-character shortcut commands (beyond cmd's "@" and "!") * Settable environment parameters * Parsing commands with flags * > (filename), >> (filename) redirect output to file * < (filename) gets input from file * bare >, >>, < redirect to/from paste buffer * accepts abbreviated commands when unambiguous * `py` enters interactive Python console * test apps against sample session transcript (see example/example.py) Usable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. See docs at http://packages.python.org/cmd2/

Architecture:

noarch

Version:

0.6.4

Release:

7.el6

Size:

40 k

Repository:

epel

From Repository:

Licence:

MIT



Handy Yum Commands for python-cmd2


Control the python-cmd2 package with the following handy commands outlined below.


Command

Description of Command

yum install python-cmd2

This command will install python-cmd2 on the server.

yum remove python-cmd2

This command will un-install python-cmd2 on the server. When you run this command, you will be asked if you are sure that you want to remove python-cmd2, so you have to manually confirm that you want to do this.

yum -y remove python-cmd2

This command will un-install python-cmd2 on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python-cmd2 when using the -y flag.

yum update python-cmd2

This command will update python-cmd2 to the latest version. When you run this command, you will be asked if you are sure that you want to remove python-cmd2, so you have to manually confirm that you want to do this.

yum -y update python-cmd2

This command will update python-cmd2 to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python-cmd2 when using the -y flag.

yum info python-cmd2

This command will show you core information about the python-cmd2 package.

yum deplist python-cmd2

This command will show you the dependencies for python-cmd2. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update python-cmd2

This command will check if there is an update waiting on python-cmd2. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.