Skip to content

Commit 23a127d

Browse files
Apply suggestions from code review
Co-authored-by: Travis Martin <[email protected]>
1 parent db57049 commit 23a127d

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

source/unitctl.rst

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -307,20 +307,19 @@ Edit current configuration
307307
++++++++++++++++++++++++++
308308

309309
Unitctl can fetch the configuration from a running instance of Unit and load it
310-
in any number of preconfigured editors on your command line using the **edit**
311-
command.
310+
in a preconfigured editor on your command line using the **edit** command.
312311

313-
Unitctl will try to use whatever editor is configured with the **EDITOR** environment
314-
variable, but will default to vim, emacs, nano, vi, or pico.
312+
Unitctl tries to use the editor configured with the **EDITOR** environment
313+
variable, but defaults to vim, emacs, nano, vi, or pico if **EDITOR** is not set.
315314

316-
To edit the current configuration, run the following command:
315+
To edit the current configuration, run:
317316

318317
.. code-block:: console
319318
320319
$ unitctl edit
321320
322-
The configuration will be loaded into the editor, and you can make any necessary
323-
changes. Once you save and close the editor, you will see the following output:
321+
The configuration loads into the editor, allowing you to make any necessary
322+
changes. Once you save and close the editor, you see the following output:
324323

325324
.. code-block:: console
326325
@@ -336,11 +335,11 @@ changes. Once you save and close the editor, you will see the following output:
336335
Importing the configuration from a folder
337336
+++++++++++++++++++++++++++++++++++++++++
338337

339-
Using the **import** command, Unitctl will parse existing configuration,
340-
certificates, and NJS modules stored in a directory and convert them into a
341-
payload to reconfigure a given Unit daemon.
338+
The **import** command lets Unitctl read configuration files, certificates, and
339+
NJS modules from a directory. Unitctl then converts these files into a payload
340+
to reconfigure a Unit daemon.
342341

343-
To export the configuration, run the following command:
342+
To export the configuration, run:
344343

345344
.. code-block:: console
346345
@@ -354,11 +353,11 @@ To export the configuration, run the following command:
354353
Exporting the configuration from Unit
355354
+++++++++++++++++++++++++++++++++++++
356355

357-
The **export** command will query a control API to fetch running configuration
358-
and NJS modules from a Unit process. Due to a technical limitation this output
359-
will not contain the currently stored certificate bundles. The output is saved
360-
as a tarball at the filename given with the **-f** argument. Standard out may be
361-
used with **-f -** as shown in the following examples:
356+
The **export** command queries a control API to fetch the running configuration
357+
and NJS modules from a Unit process. The output does not include the currently
358+
stored certificate bundles due to a technical limitation. The output is saved
359+
as a tarball with the filename specified by the **-f** argument. You can also
360+
use standard output with **-f -**, as shown in the examples below:
362361

363362
.. code-block:: console
364363
@@ -379,7 +378,7 @@ used with **-f -** as shown in the following examples:
379378
Wait for a socket to be available
380379
+++++++++++++++++++++++++++++++++
381380

382-
All commands support waiting on unix sockets for availability:
381+
All commands support waiting for Unix sockets to become available:
383382

384383
.. code-block:: console
385384

0 commit comments

Comments
 (0)