From: Ardis Lu Date: Wed, 19 Oct 2022 05:22:04 +0000 (-0700) Subject: Update CLI code examples to follow convention X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=cb6d3dca21b4947cd070760cdf2df2db4d8f55db;p=cloudflare-workers Update CLI code examples to follow convention $ is typically used to indicate a unix shell and PS> for PowerShell --- diff --git a/README.md b/README.md index 39fd68f..26d8d11 100644 --- 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 -> +$ curl https://x.y.workers.dev + ``` In PowerShell: ```powershell -(Invoke-WebRequest https://x.y.workers.dev).Content -> +PS> (Invoke-WebRequest https://x.y.workers.dev).Content + ``` ## uuid @@ -188,15 +188,15 @@ Returns a random version 4 UUID. In bash: ```bash -curl https://x.y.workers.dev -> +$ curl https://x.y.workers.dev + ``` In PowerShell: ```powershell -(Invoke-WebRequest https://x.y.workers.dev).Content -> +PS> (Invoke-WebRequest https://x.y.workers.dev).Content + ``` ## 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`