Skip to content

Commit 9de30a8

Browse files
authored
Merge pull request #1 from tarynmusgrave/taryn-cli-monorepo
Removing additional whitespace
2 parents ee25371 + 86cefa1 commit 9de30a8

File tree

6 files changed

+29
-31
lines changed

6 files changed

+29
-31
lines changed

cli/.gitignore

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Generated by Cargo
2-
# will have compiled files and executables
3-
debug/
4-
target/
5-
6-
# These are backup files generated by rustfmt
7-
**/*.rs.bk
8-
9-
# Ignore OpenAPI cache files
10-
.openapi_cache
11-
# Ignore generated OpenAPI documentation
12-
unit-openapi/docs
13-
# Ignore autogenerated OpenAPI code
14-
unit-openapi/src
15-
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# These are backup files generated by rustfmt
7+
**/*.rs.bk
8+
9+
# Ignore OpenAPI cache files
10+
.openapi_cache
11+
# Ignore generated OpenAPI documentation
12+
unit-openapi/docs
13+
# Ignore autogenerated OpenAPI code
14+
unit-openapi/src
15+
1616
config

cli/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# NGINX UNIT Rust SDK and CLI
22

3-
This project provides a Rust SDK interface to the
3+
This project provides a Rust SDK interface to the
44
[NGINX UNIT](https://unit.nginx.org/)
5-
[control API](https://unit.nginx.org/howto/source/#source-startup)
5+
[control API](https://unit.nginx.org/howto/source/#source-startup)
66
and a CLI (`unitctl`) that exposes the functionality provided by the SDK.
77

88
## Installation and Use
9-
In order to build and use `unitctl` one needs a working installation of Maven
10-
and Cargo. It is recommended to procure Cargo with Rustup. Rustup is packaged
11-
for use in many systems, but you can also find it at its
9+
In order to build and use `unitctl` one needs a working installation of Maven
10+
and Cargo. It is recommended to procure Cargo with Rustup. Rustup is packaged
11+
for use in many systems, but you can also find it at its
1212
[Official Site](https://rustup.rs/).
1313

14-
With a working installation of Cargo it is advised to build unitctl with the
15-
provided makefile. The `list-targets` target will inform the user of what
14+
With a working installation of Cargo it is advised to build unitctl with the
15+
provided makefile. The `list-targets` target will inform the user of what
1616
platforms are available to be built. One or more of these can then be run as
1717
their own makefile targets. Alternatively, all available binary targets can be
1818
built with `make all`. See the below example for illustration:
@@ -30,7 +30,7 @@ with debug_info, not stripped
3030
```
3131

3232
As demonstrated in the example above, compiled binaries may be found in the
33-
targets folder, under the subdirectory corresponding to the build target
33+
targets folder, under the subdirectory corresponding to the build target
3434
desired.
3535

3636

@@ -106,7 +106,7 @@ $ unitctl edit
106106
107107
{
108108
"success": "Reconfiguration done."
109-
}
109+
}
110110
```
111111

112112
### Display interactive OpenAPI control panel
@@ -137,7 +137,7 @@ Timeout waiting for unit to start has been exceeded
137137

138138
We welcome pull requests and issues!
139139

140-
Please refer to the
140+
Please refer to the
141141
[Contributing Guidelines](../CONTRIBUTING.md) when doing a PR.
142142

143143
## License

cli/build/openapi-generator-cli.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ java -ea \
7474
-Xms512M \
7575
-Xmx1024M \
7676
-server \
77-
-jar ${DIR}/${jar} "$@"
78-
77+
-jar ${DIR}/${jar} "$@"

cli/man/unitctl.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Report any issues on the project issue tracker at:
1414
\fB<https://github.com/nginx/unit>\fR
1515
.
1616
.SH ACKNOWLEDGEMENTS
17-
WRITE ME
17+
WRITE ME
1818
.
1919
.SH AUTHOR
2020
Elijah Zupancic \fB<[email protected]>\fR

cli/unit-openapi/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,5 +408,4 @@ cargo doc --open
408408

409409
## Author
410410

411-
412-
411+

cli/unitctl/src/unitctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub(crate) enum Commands {
123123
help = "Output format: yaml, json, json-pretty (default)"
124124
)]
125125
output_format: OutputFormat,
126-
}
126+
},
127127
}
128128

129129
fn parse_control_socket_address(s: &str) -> Result<ControlSocket, ClapError> {

0 commit comments

Comments
 (0)