Comparing version 0.5.0 to 0.6.0
@@ -1,1 +0,1 @@ | ||
{"version":"0.5.0","commands":{"build":{"id":"build","description":"build docs","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","description":"project name"},"password":{"name":"password","type":"option","char":"p","description":"password for project"}},"args":[{"name":"filepath","description":"dbml file path"}]},"login":{"id":"login","description":"login to dbdocs\nlogin with your dbdocs credentials\n","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"logout":{"id":"logout","description":"logout\nclears local login credentials\n","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"password":{"id":"password","description":"set password for your project or remove password","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","char":"p","description":"project name","helpValue":"project name"},"set":{"name":"set","type":"option","char":"s","description":"password for your project","helpValue":"password"},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove password from your project","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove docs","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"project_name","description":"name of the project which you want to remove"}]},"token":{"id":"token","description":"generate or revoke your authentication token","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"generate":{"name":"generate","type":"boolean","char":"g","description":"generate authentication token","allowNo":false},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke authentication token","allowNo":false}},"args":[]}}} | ||
{"version":"0.6.0","commands":{"build":{"id":"build","description":"build docs","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","description":"project name"},"password":{"name":"password","type":"option","char":"p","description":"password for project"}},"args":[{"name":"filepath","description":"dbml file path"}]},"login":{"id":"login","description":"login to dbdocs\nlogin with your dbdocs credentials\n","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"logout":{"id":"logout","description":"logout\nclears local login credentials\n","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"ls":{"id":"ls","description":"list projects","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"password":{"id":"password","description":"set password for your project or remove password","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","char":"p","description":"project name","helpValue":"project name"},"set":{"name":"set","type":"option","char":"s","description":"password for your project","helpValue":"password"},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove password from your project","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove docs","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"project_name","description":"name of the project which you want to remove"}]},"token":{"id":"token","description":"generate or revoke your authentication token","pluginName":"dbdocs","pluginType":"core","aliases":[],"flags":{"generate":{"name":"generate","type":"boolean","char":"g","description":"generate authentication token","allowNo":false},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke authentication token","allowNo":false}},"args":[]}}} |
{ | ||
"name": "dbdocs", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"author": "@holistics", | ||
@@ -14,2 +14,3 @@ "bin": { | ||
"chalk": "^3.0.0", | ||
"cli-ux": "^5.6.3", | ||
"dotenv": "^8.2.0", | ||
@@ -16,0 +17,0 @@ "inquirer": "^7.0.1", |
@@ -22,3 +22,3 @@ dbdocs | ||
$ dbdocs (-v|--version|version) | ||
dbdocs/0.5.0 darwin-x64 node-v15.10.0 | ||
dbdocs/0.6.0 darwin-x64 node-v15.10.0 | ||
$ dbdocs --help [COMMAND] | ||
@@ -36,2 +36,3 @@ USAGE | ||
* [`dbdocs logout`](#dbdocs-logout) | ||
* [`dbdocs ls`](#dbdocs-ls) | ||
* [`dbdocs password`](#dbdocs-password) | ||
@@ -96,2 +97,14 @@ * [`dbdocs remove [PROJECT_NAME]`](#dbdocs-remove-project_name) | ||
## `dbdocs ls` | ||
list projects | ||
``` | ||
USAGE | ||
$ dbdocs ls | ||
DESCRIPTION | ||
list all projects in your default organization | ||
``` | ||
## `dbdocs password` | ||
@@ -98,0 +111,0 @@ |
@@ -8,5 +8,10 @@ const axios = require('axios'); | ||
} | ||
async function getProjectsByOrg (orgName, authConfig) { | ||
const { data: { org: { projects } } } = await axios.get(`${vars.apiUrl}/orgs/${orgName}/projects`, authConfig); | ||
return projects; | ||
} | ||
module.exports = { | ||
getOrg, | ||
getProjectsByOrg, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29824
24
737
145
12
+ Addedcli-ux@^5.6.3
+ Added@oclif/screen@1.0.4(transitive)
+ Addedansicolors@0.3.2(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedcardinal@2.1.1(transitive)
+ Addedcli-progress@3.12.0(transitive)
+ Addedcli-ux@5.6.7(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedextract-stack@2.0.0(transitive)
+ Addedhyperlinker@1.0.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addednatural-orderby@2.0.3(transitive)
+ Addedobject-treeify@1.1.33(transitive)
+ Addedpassword-prompt@1.1.3(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedredeyed@2.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsupports-color@8.1.1(transitive)
+ Addedsupports-hyperlinks@2.3.0(transitive)
+ Addedwhich@2.0.2(transitive)