]> git.ardis.lu - cloudflare-workers/commitdiff
Update CLI code examples to follow convention
authorArdis Lu <ardisglu@gmail.com>
Wed, 19 Oct 2022 05:22:04 +0000 (22:22 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 19 Oct 2022 05:22:04 +0000 (22:22 -0700)
$ is typically used to indicate a unix shell and PS> for PowerShell

README.md

index 39fd68f8d942581a59f0f19796d4eb40877ae9e8..26d8d11160f009865034da40539f5601fd1721e8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -149,15 +149,15 @@ is a simplified implementation of the
 In bash:
 
 ```bash
-curl https://x.y.workers.dev?hunter2
-> true
+$ curl https://x.y.workers.dev?hunter2
+true
 ```
 
 In PowerShell:
 
 ```powershell
-(Invoke-WebRequest https://x.y.workers.dev?hunter2).Content
-> true
+PS> (Invoke-WebRequest https://x.y.workers.dev?hunter2).Content
+true
 ```
 
 ## ip
@@ -170,15 +170,15 @@ Returns the requester's IP address. Uses the
 In bash:
 
 ```bash
-curl https://x.y.workers.dev
-> <your IP address>
+$ curl https://x.y.workers.dev
+<your IP address>
 ```
 
 In PowerShell:
 
 ```powershell
-(Invoke-WebRequest https://x.y.workers.dev).Content
-> <your IP address>
+PS> (Invoke-WebRequest https://x.y.workers.dev).Content
+<your IP address>
 ```
 
 ## uuid
@@ -188,15 +188,15 @@ Returns a random version 4 UUID.
 In bash:
 
 ```bash
-curl https://x.y.workers.dev
-> <random v4 UUID>
+$ curl https://x.y.workers.dev
+<random v4 UUID>
 ```
 
 In PowerShell:
 
 ```powershell
-(Invoke-WebRequest https://x.y.workers.dev).Content
-> <random v4 UUID>
+PS> (Invoke-WebRequest https://x.y.workers.dev).Content
+<random v4 UUID>
 ```
 
 ## hash
@@ -207,15 +207,15 @@ Returns the hash of a string using the
 In bash:
 
 ```bash
-curl https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21
-> 315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3
+$ curl https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21
+315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3
 ```
 
 In PowerShell:
 
 ```powershell
-(Invoke-WebRequest https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21).Content
-> 315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3
+PS> (Invoke-WebRequest https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21).Content
+315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3
 ```
 
 ### `algorithm`
This page took 0.050771 seconds and 4 git commands to generate.