@datacamp/learn-vm-scripts 0.0.1-rc.1 → 0.0.1-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,16 +31,28 @@ The `.env.development` file should be updated with the values of your local Chro
31
31
 
32
32
  ## Usage
33
33
 
34
- The CLI tool accepts the following arguments:
34
+ This project contains a program that logs in to a cloud provider using Puppeteer.
35
35
 
36
- - `--url`: The URL of the service to log in to.
37
- - `--username`: The username for login.
38
- - `--password`: The password for login.
36
+ To build:
39
37
 
40
- ### Example
38
+ ```sh
39
+ yarn build
40
+ ```
41
41
 
42
- To log in to AWS:
42
+ To start the file watcher:
43
43
 
44
44
  ```sh
45
- yarn cli -- --url "http://example.aws.amazon.com" --username "yourUsername" --password "yourPassword"
45
+ yarn cli -- --inputFilePath <path-to-input-file> --outputFilePath <path-to-output-file>
46
46
  ```
47
+
48
+ The program watches the input file for changes.
49
+ To log in to a cloud provider, write the following JSON object to the input file:
50
+
51
+ ```json
52
+ { "url": "<url-to-login-page>", "username": "<your-username>", "password": "<your-password>", "cloudProvider": "<cloud-provider>"}
53
+ ```
54
+
55
+ ❗️The input has to be written to a single line.
56
+ Each line is parsed individually.
57
+
58
+ When the login process is complete, the program writes a line to the output file.