mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-14 17:04:26 +08:00
chore: doc: remove sparse trailing spaces from generated files
This commit is contained in:
parent
76f25f287e
commit
9eac699954
50 changed files with 216 additions and 171 deletions
|
@ -44,7 +44,7 @@ do
|
||||||
else
|
else
|
||||||
perl "$pluginfile" '' '' '' '' | perl -e 'undef $/; $_=<>; s/\n+$/\n/; print $_' | perl -ne '
|
perl "$pluginfile" '' '' '' '' | perl -e 'undef $/; $_=<>; s/\n+$/\n/; print $_' | perl -ne '
|
||||||
if (m{^Usage: (.+)}) { print ".. admonition:: usage\n :class: cmdusage\n\n $1\n\n.. program:: '"$name"'\n\n"; }
|
if (m{^Usage: (.+)}) { print ".. admonition:: usage\n :class: cmdusage\n\n $1\n\n.. program:: '"$name"'\n\n"; }
|
||||||
elsif (m{^ (-[- ,a-z|/A-Z"'"'"']+) (.+)}) { print ".. option:: $1\n\n $2\n\n"; }
|
elsif (m{^ (-[- ,a-z|/A-Z"'"'"']+) (.+)}) { ($c,$t)=($1,$2); $c=~s/ +$//; print ".. option:: $c\n\n $t\n\n"; }
|
||||||
elsif ($l++ == 0) { chomp; print "$_\n"."="x(length($_))."\n\n"; }
|
elsif ($l++ == 0) { chomp; print "$_\n"."="x(length($_))."\n\n"; }
|
||||||
else { print "$_"; }
|
else { print "$_"; }
|
||||||
'
|
'
|
||||||
|
|
25
doc/sphinx/plugins/restricted/accountFreeze.rst
Normal file
25
doc/sphinx/plugins/restricted/accountFreeze.rst
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
==============
|
||||||
|
accountFreeze
|
||||||
|
==============
|
||||||
|
|
||||||
|
Freeze an account, to prevent it from connecting
|
||||||
|
================================================
|
||||||
|
|
||||||
|
|
||||||
|
.. admonition:: usage
|
||||||
|
:class: cmdusage
|
||||||
|
|
||||||
|
--osh accountFreeze --account ACCOUNT [--reason "'SOME REASON'"]
|
||||||
|
|
||||||
|
.. program:: accountFreeze
|
||||||
|
|
||||||
|
|
||||||
|
.. option:: --account ACCOUNT
|
||||||
|
|
||||||
|
Account to freeze
|
||||||
|
|
||||||
|
.. option:: --reason "'SOME REASON'"
|
||||||
|
|
||||||
|
Optional reason for the account to be frozen (will be displayed to the user),
|
||||||
|
|
||||||
|
if you are in a shell (and not in interactive mode), quote it twice as shown.
|
20
doc/sphinx/plugins/restricted/accountUnfreeze.rst
Normal file
20
doc/sphinx/plugins/restricted/accountUnfreeze.rst
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
================
|
||||||
|
accountUnfreeze
|
||||||
|
================
|
||||||
|
|
||||||
|
Unfreeze a frozen account
|
||||||
|
=========================
|
||||||
|
|
||||||
|
|
||||||
|
.. admonition:: usage
|
||||||
|
:class: cmdusage
|
||||||
|
|
||||||
|
--osh accountUnfreeze --account ACCOUNT
|
||||||
|
|
||||||
|
.. program:: accountUnfreeze
|
||||||
|
|
||||||
|
|
||||||
|
.. option:: --account ACCOUNT
|
||||||
|
|
||||||
|
Account to unfreeze
|
||||||
|
|
|
@ -141,7 +141,7 @@ then use ``<TAB>`` again to show you the required arguments. The complete comman
|
||||||
|
|
||||||
You'll notice that it didn't work. This is because first, you need to add your *personal egress key* to the
|
You'll notice that it didn't work. This is because first, you need to add your *personal egress key* to the
|
||||||
remote machine's *authorized_keys* file. If this seems strange, here is
|
remote machine's *authorized_keys* file. If this seems strange, here is
|
||||||
:doc:`how it works <../presentation/principles>`.
|
:doc:`how it works </presentation/principles>`.
|
||||||
To get your *personal egress key*, you can use this command:
|
To get your *personal egress key*, you can use this command:
|
||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
@ -267,4 +267,4 @@ Let's see what we did exactly during this session:
|
||||||
~ Starting from the next line, the Total Recall begins. Press CTRL+C to jolt awake.
|
~ Starting from the next line, the Total Recall begins. Press CTRL+C to jolt awake.
|
||||||
|
|
||||||
Now that you've connected to your first server, using a personal access,
|
Now that you've connected to your first server, using a personal access,
|
||||||
you may want to learn more about the :doc:`<access_management>`, or directly dive into the **PLUGINS** on the left menu.
|
you may want to learn more about the :doc:`access_management`, or directly dive into the **PLUGINS** on the left menu.
|
||||||
|
|
Loading…
Add table
Reference in a new issue