Skip to content

Commit

Permalink
Merge pull request #31 from dittowords/xav/update-url
Browse files Browse the repository at this point in the history
Update beta to app
  • Loading branch information
XavierAgostini authored May 16, 2022
2 parents 95f1592 + 2418e28 commit cde800e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install --global @dittowords/cli

The installed binary is named `ditto-cli`. You can execute it directly in `node_modules/.bin/ditto-cli` or using [npx](https://www.npmjs.com/package/npx) (with or without installation) like `npx @dittowords/cli`.

The first time you run the CLI, you'll be asked to provide an API key (found at [https://beta.dittowords.com/account/user](https://beta.dittowords.com/account/user) under **API Keys**):
The first time you run the CLI, you'll be asked to provide an API key (found at [https://app.dittowords.com/account/user](https://app.dittowords.com/account/user) under **API Keys**):

```
$ npx @dittowords/cli
Expand All @@ -41,8 +41,8 @@ Once you've successfully authenticated, you'll be asked to configure the CLI wit
Looks like there are no Ditto projects selected for your current directory.
? Choose the project you'd like to sync text from:
- Ditto Component Library https://beta.dittowords.com/components/all
- NUX Onboarding Flow https://beta.dittowords.com/doc/609e9981c313f8018d0c346a
- Ditto Component Library https://app.dittowords.com/components/all
- NUX Onboarding Flow https://app.dittowords.com/doc/609e9981c313f8018d0c346a
...
```

Expand Down
2 changes: 1 addition & 1 deletion lib/init/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function checkToken(token) {

async function collectToken(message) {
const blue = output.info;
const apiUrl = output.url("https://beta.dittowords.com/account/user");
const apiUrl = output.url("https://app.dittowords.com/account/user");
const breadcrumbs = `${blue("User")}`;
const tokenDescription =
message ||
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/projectsToText.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function projectsToText(projects) {
"- " +
output.info(name) +
" " +
output.subtle("https://beta.dittowords.com/doc/" + id)),
output.subtle("https://app.dittowords.com/doc/" + id)),
""
) + "\n"
);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/promptForProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function formatProjectChoice(project) {
project.name +
" " +
output.subtle(
project.url || `https://beta.dittowords.com/doc/${project.id}`
project.url || `https://app.dittowords.com/doc/${project.id}`
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dittowords/cli",
"version": "2.3.0",
"version": "2.4.0",
"description": "Command Line Interface for Ditto (dittowords.com).",
"main": "bin/index.js",
"scripts": {
Expand Down

0 comments on commit cde800e

Please sign in to comment.