Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit ac97ba2

Browse files
committed
update
1 parent a27d440 commit ac97ba2

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed

README.rst

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,79 @@ To use flook, follow the following steps:
3737
$ flook --help
3838
3939
40-
4. Init the config file and the database
40+
4. Init the config file and the sqlite database
4141

4242
.. code-block::
4343
4444
$ flook config init
4545
4646
47-
5. Add a recipe
47+
5. To edit configs
48+
49+
.. code-block::
50+
51+
$ flook config init
52+
53+
54+
6. Add a recipe
4855

4956
.. code-block::
5057
5158
$ flook recipe add <recipe_name> -p <recipe_relative_path>
5259
$ flook recipe add clivern/nginx -p recipe/nginx
5360
54-
# To list recipes
61+
62+
7. To list recipes
63+
64+
.. code-block::
65+
5566
$ flook recipe list
5667
57-
# To get a recipe
68+
69+
8. To get a recipe
70+
71+
.. code-block::
72+
5873
$ flook recipe get <recipe_name>
5974
60-
# To delete a recipe
75+
76+
9. To delete a recipe
77+
78+
.. code-block::
79+
6180
$ flook recipe delete <recipe_name>
6281
6382
64-
6. Add a host
83+
10. Add a host
6584

6685
.. code-block::
6786
6887
$ flook host add <host_name> -i <host_ip> -p <ssh_port> -u <ssh_username> -s <ssh_key_path>
6988
$ flook host add example.com -i 127.0.0.1 -p 22 -u root -s /Users/root/.ssh/id_rsa.pem
7089
7190
72-
7. Run a recipe towards a host
91+
11. To list hosts
92+
93+
.. code-block::
94+
95+
$ flook host list
96+
97+
98+
12. To get a host
99+
100+
.. code-block::
101+
102+
$ flook host get <host_name>
103+
104+
105+
13. To delete a host
106+
107+
.. code-block::
108+
109+
$ flook host delete <host_name>
110+
111+
112+
14. Run a recipe towards a host
73113

74114
.. code-block::
75115

0 commit comments

Comments
 (0)