You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating solutions developers have no shortage of tools to create rich and smart user interfaces.
33
-
System administrators have long been duct taping together brittle workflows based on a menagerie of simple command line tools created by strangers on github and the guy down the hall.
33
+
System administrators have long been duct taping together brittle workflows based on a menagerie of simple command line
34
+
tools created by strangers on github and the guy down the hall.
34
35
Unfortunately, when CLIs become significantly complex the ease of command discoverability tends to fade quickly.
35
-
On the other hand, Web and traditional desktop GUIs are first in class when it comes to easily discovering functionality.
36
-
The price we pay for beautifully colored displays is complexity required to aggregate disperate applications into larger systems.
37
-
`cmd2` fills the niche between high [ease of command discovery](https://clig.dev/#ease-of-discovery) applications and smart workflow automation systems.
38
-
39
-
The `cmd2` framework provides a great mixture of both worlds. Application designers can easily create complex applications and rely on the cmd2 library to offer effortless user facing help and extensive tab completion.
40
-
When users become comfortable with functionality, cmd2 turns into a feature rich library enabling a smooth transition to full automation. If designed with enough forethought, a well implemented cmd2 application can serve as a boutique workflow tool. `cmd2` pulls off this flexibility based on two pillars of philosophy:
36
+
On the other hand, Web and traditional desktop GUIs are first in class when it comes to easily discovering
37
+
functionality.
38
+
The price we pay for beautifully colored displays is complexity required to aggregate disperate applications into larger
39
+
systems.
40
+
`cmd2` fills the niche between high [ease of command discovery](https://clig.dev/#ease-of-discovery) applications and
41
+
smart workflow automation systems.
42
+
43
+
The `cmd2` framework provides a great mixture of both worlds. Application designers can easily create complex
44
+
applications and rely on the cmd2 library to offer effortless user facing help and extensive tab completion.
45
+
When users become comfortable with functionality, cmd2 turns into a feature rich library enabling a smooth transition to
46
+
full automation. If designed with enough forethought, a well implemented cmd2 application can serve as a boutique
47
+
workflow tool. `cmd2` pulls off this flexibility based on two pillars of philosophy:
41
48
42
49
- Tab Completion
43
50
- Automation Transition
@@ -46,7 +53,8 @@ When users become comfortable with functionality, cmd2 turns into a feature rich
46
53
47
54
<ahref="https://imgflip.com/i/63h03x"><imgsrc="https://i.imgflip.com/63h03x.jpg"title="made at imgflip.com"width="70%"height="%70"/></a>
48
55
49
-
Deep extensive tab completion and help text generation based on the argparse library create the first pillar of 'ease of command discovery'. The following is a list of features in this category.
56
+
Deep extensive tab completion and help text generation based on the argparse library create the first pillar of 'ease of
57
+
command discovery'. The following is a list of features in this category.
50
58
51
59
- Great tab completion of commands, subcommands, file system paths, and shell commands.
52
60
- Custom tab completion for user designed commands via simple function overloading.
@@ -57,7 +65,8 @@ Deep extensive tab completion and help text generation based on the argparse lib
57
65
58
66
<ahref="https://imgflip.com/i/66t0y0"><imgsrc="https://i.imgflip.com/66t0y0.jpg"title="made at imgflip.com"width="70%"height="70%"/></a>
59
67
60
-
cmd2 creates the second pillar of 'ease of transition to automation' through alias creation, command line argument parsing and execution of cmd2 scripting.
68
+
cmd2 creates the second pillar of 'ease of transition to automation' through alias/macro creation, command line argument
69
+
parsing and execution of cmd2 scripting.
61
70
62
71
- Flexible alias creation for quick abstraction of commands.
63
72
- Text file scripting of your application with `run_script` (`@`) and `_relative_run_script` (`@@`)
@@ -94,7 +103,8 @@ The best way to learn the cmd2 api is to delve into the example applications loc
If you think you've found a bug, please first read through the open [Issues](https://github.com/python-cmd2/cmd2/issues). If you're confident it's a new bug, go ahead and create a new GitHub issue. Be sure to include as much information as possible so we can reproduce the bug. At a minimum, please state the following:
139
+
If you think you've found a bug, please first read through the
140
+
open [Issues](https://github.com/python-cmd2/cmd2/issues). If you're confident it's a new bug, go ahead and create a new
141
+
GitHub issue. Be sure to include as much information as possible so we can reproduce the bug. At a minimum, please state
Copy file name to clipboardExpand all lines: docs/overview/installation.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Installation Instructions
2
2
3
-
`cmd2` works on Linux, macOS, and Windows. It requires Python 3.8 or higher, [pip](https://pypi.org/project/pip), and [setuptools](https://pypi.org/project/setuptools). If you've got all that, then you can just:
3
+
`cmd2` works on Linux, macOS, and Windows. It requires Python 3.9 or higher, [pip](https://pypi.org/project/pip),
4
+
and [setuptools](https://pypi.org/project/setuptools). If you've got all that, then you can just:
4
5
5
6
```shell
6
7
$ pip install cmd2
@@ -16,7 +17,9 @@ $ pip install cmd2
16
17
17
18
## Prerequisites
18
19
19
-
If you have Python 3 >=3.8 installed from [python.org](https://www.python.org), you will already have [pip](https://pypi.org/project/pip) and [setuptools](https://pypi.org/project/setuptools), but may need to upgrade to the latest versions:
20
+
If you have Python 3 >=3.9 installed from [python.org](https://www.python.org), you will already
21
+
have [pip](https://pypi.org/project/pip) and [setuptools](https://pypi.org/project/setuptools), but may need to upgrade
We recommend installing from [pip](https://pypi.org/project/pip), but if you wish to install from Debian or Ubuntu repos this can be done with apt-get.
58
+
We recommend installing from [pip](https://pypi.org/project/pip), but if you wish to install from Debian or Ubuntu repos
59
+
this can be done with apt-get.
54
60
55
61
For Python 3:
56
62
@@ -78,13 +84,19 @@ If you wish to permanently uninstall `cmd2`, this can also easily be done with [
78
84
79
85
## readline Considerations
80
86
81
-
Tab completion for `cmd2` applications is only tested against GNU Readline. It does not work properly with the [libedit](http://thrysoee.dk/editline/) library which is similar, but not identical to GNU Readline. `cmd2` will disable all tab-completion support if an incompatible version of `readline` is found.
87
+
Tab completion for `cmd2` applications is only tested against GNU Readline. It does not work properly with
88
+
the [libedit](http://thrysoee.dk/editline/) library which is similar, but not identical to GNU Readline. `cmd2` will
89
+
disable all tab-completion support if an incompatible version of `readline` is found.
82
90
83
-
When installed using `pip`, `uv`, or similar Python packaging tool on either `macOS` or `Windows`, `cmd2` will automatically install a compatiable version of readline.
91
+
When installed using `pip`, `uv`, or similar Python packaging tool on either `macOS` or `Windows`, `cmd2` will
92
+
automatically install a compatiable version of readline.
84
93
85
-
Most `Linux` OSes come with a compatible version of readline. However, if you are using a tool like `uv` to install Python on your system and configure a virtual environment, `uv` installed versions of Python come with `libEdit`.
94
+
Most `Linux` OSes come with a compatible version of readline. However, if you are using a tool like `uv` to install
95
+
Python on your system and configure a virtual environment, `uv` installed versions of Python come with `libEdit`.
86
96
87
-
macOS comes with the [libedit](http://thrysoee.dk/editline/) library which is similar, but not identical, to GNU Readline. Tab completion for `cmd2` applications is only tested against GNU Readline. In this case you just need to install the `gnureadline` Python package which is statically linked against GNU Readline:
97
+
macOS comes with the [libedit](http://thrysoee.dk/editline/) library which is similar, but not identical, to GNU
98
+
Readline. Tab completion for `cmd2` applications is only tested against GNU Readline. In this case you just need to
99
+
install the `gnureadline` Python package which is statically linked against GNU Readline:
0 commit comments