-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2127361
commit 738e124
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# checkout-link | ||
|
||
Generate a checkout link for any kind of file from your command line. | ||
Generate a checkout link for any kind of file from the command line. | ||
|
||
### Getting Started | ||
|
||
```bash | ||
npx checkout-link ./path/to/file.zip | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import prompts from "prompts"; | ||
|
||
export const serverPrompt = async () => { | ||
const { server } = await prompts({ | ||
type: "select", | ||
name: "server", | ||
message: "Server", | ||
choices: [ | ||
{ title: "Production", value: "production" }, | ||
{ title: "Sandbox", value: "sandbox" }, | ||
], | ||
}); | ||
|
||
return server; | ||
}; |