File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 10
10
## Overview
11
11
12
12
This is a library supporting the development of command-line tools in
13
- the programming language Swift on macOS. The library provides the following
14
- functionality:
13
+ the programming language Swift on macOS. It also compiles under Linux.
14
+ The library provides the following functionality:
15
15
16
- - Management of command-line arguments
17
- - Usage of escape sequences in XTerms
16
+ - Management of command-line arguments,
17
+ - Usage of escape sequences on terminals, and
18
18
- Reading strings on terminals using a lineread-inspired implementation
19
19
based on the library [ Linenoise-Swift] ( https://github.com/andybest/linenoise-swift ) ,
20
20
but supporting unicode input, multiple lines, and styled text.
@@ -143,9 +143,10 @@ CommandLineKit includes a significantly improved version of the "readline" API o
143
143
styled text. It supports all the existing features such as _ advanced keyboard support_ , _ history_ ,
144
144
_ text completion_ , and _ hints_ .
145
145
146
- The following code illustrates the usage of the LineReader API:
146
+ The following code illustrates the usage of the
147
+ [ LineReader] ( https://github.com/objecthub/swift-commandlinekit/blob/master/Sources/CommandLineKit/LineReader.swift ) API:
147
148
148
- ```
149
+ ``` swift
149
150
if let ln = LineReader () {
150
151
ln.setCompletionCallback { currentBuffer in
151
152
let completions = [
You can’t perform that action at this time.
0 commit comments