Skip to content

Commit

Permalink
fix: commands working, onto tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Nov 10, 2020
1 parent 7fba9af commit 57772dd
Show file tree
Hide file tree
Showing 18 changed files with 1,966 additions and 1,323 deletions.
18 changes: 18 additions & 0 deletions messages/create.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"description": "create a user for a scratch org",
"examples": [
"sfdx force:user:create",
"sfdx force:user:create -a testuser1 -f config/project-user-def.json",
"sfdx force:user:create [email protected] [email protected] permsets=DreamHouse",
"sfdx force:user:create -f config/project-user-def.json [email protected] generatepassword=true"
],
"flags": {
"alias": "set an alias for the created username to reference within the CLI",
"definitionfile": "file path to a user definition"
},
"userNotCreated": "User must be created before %s",
"licenseLimitExceeded": "There are no available user licenses for the user profile \"%s\".",
"duplicateUsername": "The username \"%s\" already exists in this or another Salesforce org. Usernames must be unique across all Salesforce orgs.",
"profileNameNotFound": "Profile name \"%s\" not found in target org. Do you need to push source?",
"success": "Successfully created user \"%s\" with ID %s for org %s.%sYou can see more details about this user by running \"sfdx force:user:display -u %s\"."
}
4 changes: 4 additions & 0 deletions messages/display.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "displays information about a user of a scratch org",
"examples": ["sfdx force:user:display", "sfdx force:user:display -u [email protected] --json"]
}
8 changes: 8 additions & 0 deletions messages/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"description": "lists all users of a scratch org",
"examples": [
"sfdx force:user:list",
"sfdx force:user:list -u [email protected] --json",
"sfdx force:user:list --json > tmp/MyUserList.json"
]
}
22 changes: 0 additions & 22 deletions messages/messages.json

This file was deleted.

6 changes: 0 additions & 6 deletions messages/org.json

This file was deleted.

15 changes: 15 additions & 0 deletions messages/password.generate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"description": "generate a password for scratch org users",
"examples": [
"sfdx force:user:password:generate",
"sfdx force:user:password:generate -u [email protected] --json",
"sfdx force:user:password:generate -o \"[email protected],[email protected],[email protected]\""
],
"flags": {
"onBehalfOf": "comma-separated list of usernames or aliases to assign the password to"
},
"noSelfSetAction": "Create a scratch org with the enableSetPasswordInApi org security setting set to TRUE and try again.",
"success": "Successfully set the password \"%s\" for user %s.",
"successMultiple": "Successfully set passwords:%s",
"viewWithCommand": "You can see the password again by running \"sfdx force:user:display -u %s\"."
}
12 changes: 12 additions & 0 deletions messages/permset.assign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"description": "assign a permission set to one or more users of an org",
"examples": [
"sfdx force:user:permset:assign -n DreamHouse",
"sfdx force:user:permset:assign -n DreamHouse -u [email protected]",
"sfdx force:user:permset:assign -n DreamHouse -o \"[email protected],user2,user3\""
],
"flags": {
"onBehalfOf": "comma-separated list of usernames or aliases to assign the permission set to",
"name": "TEST DESC"
}
}
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@salesforce/plugin-template",
"name": "@salesforce/plugin-user",
"description": "A template repository for sfdx plugins",
"version": "1.0.0",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
"@oclif/config": "^1",
"@oclif/config": "^1.17.0",
"@salesforce/command": "^3.0.3",
"@salesforce/core": "^2.6.0",
"@salesforce/core": "^2.14.0",
"tslib": "^1"
},
"devDependencies": {
"@oclif/dev-cli": "^1",
"@oclif/dev-cli": "^1.22.2",
"@salesforce/dev-config": "^2.0.0",
"@salesforce/dev-scripts": "0.6.2",
"@salesforce/prettier-config": "^0.0.1",
Expand Down Expand Up @@ -53,7 +53,7 @@
"/messages",
"/oclif.manifest.json"
],
"homepage": "https://github.com/salesforcecli/plugin-template",
"homepage": "https://github.com/salesforcecli/plugin-user",
"keywords": [
"force",
"salesforce",
Expand All @@ -69,12 +69,20 @@
"@oclif/plugin-help"
],
"topics": {
"hello": {
"description": "Commands to say hello."
"user": {
"description": "Commands to interact with the User of an org",
"subtopics": {
"permset": {
"description": "Use to interact with permission sets assigned to a user"
},
"password": {
"description": "Used to generate and set passwords for users"
}
}
}
}
},
"repository": "salesforcecli/plugin-template",
"repository": "salesforcecli/plugin-user",
"scripts": {
"build": "sf-build",
"clean": "sf-clean",
Expand Down
102 changes: 0 additions & 102 deletions src/commands/hello/org.ts

This file was deleted.

Loading

0 comments on commit 57772dd

Please sign in to comment.