Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated commands #1244

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
command: ['yarn test:nuts', 'yarn test:nuts:legacy']
command: ['yarn test:nuts']
fail-fast: false
with:
os: ${{ matrix.os }}
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.

```bash
# Run using local run file.
./bin/dev force:org:list
./bin/dev.js org list
```

There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be
Expand Down Expand Up @@ -394,8 +394,8 @@ USAGE
$ sf org delete sandbox -o <value> [--json] [--flags-dir <value>] [-p]

FLAGS
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
configuration variable is already set.
-o, --target-org=<value> (required) Username or alias of the target org. Not
required if the `target-org` configuration variable is already set.
-p, --no-prompt Don't prompt the user to confirm the deletion.

GLOBAL FLAGS
Expand Down Expand Up @@ -440,8 +440,8 @@ USAGE
$ sf org delete scratch -o <value> [--json] [--flags-dir <value>] [-p]

FLAGS
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
configuration variable is already set.
-o, --target-org=<value> (required) Username or alias of the target org. Not
required if the `target-org` configuration variable is already set.
-p, --no-prompt Don't prompt the user to confirm the deletion.

GLOBAL FLAGS
Expand Down
33 changes: 0 additions & 33 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,4 @@
[
{
"alias": [],
"command": "force:org:create",
"flagAliases": ["apiversion", "targetdevhubusername", "targetusername", "u"],
"flagChars": ["a", "c", "d", "f", "i", "n", "o", "s", "t", "v", "w"],
"flags": [
"api-version",
"clientid",
"definitionfile",
"durationdays",
"flags-dir",
"json",
"loglevel",
"noancestors",
"nonamespace",
"retry",
"setalias",
"setdefaultusername",
"target-dev-hub",
"target-org",
"type",
"wait"
],
"plugin": "@salesforce/plugin-org"
},
{
"alias": [],
"command": "force:org:delete",
"flagAliases": ["apiversion", "noprompt", "targetusername", "u"],
"flagChars": ["o", "p", "v"],
"flags": ["api-version", "flags-dir", "json", "loglevel", "no-prompt", "target-org", "targetdevhubusername"],
"plugin": "@salesforce/plugin-org"
},
{
"alias": ["env:create:sandbox"],
"command": "org:create:sandbox",
Expand Down
117 changes: 0 additions & 117 deletions messages/create.md

This file was deleted.

60 changes: 0 additions & 60 deletions messages/delete.md

This file was deleted.

4 changes: 4 additions & 0 deletions messages/delete_sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ The org with username: %s is not known by the CLI to be a sandbox

Re-authenticate the sandbox with the CLI and try again.
Ensure the CLI has authenticated with the sandbox's production org.

# error.missingUsername

Unable to determine the username of the org to delete. Specify the username with the --target-org | -o flag.
4 changes: 4 additions & 0 deletions messages/delete_scratch.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ Successfully marked scratch org %s for deletion.
# success.Idempotent

Successfully deleted scratch org %s.

# error.missingUsername

Unable to determine the username of the org to delete. Specify the username with the --target-org | -o flag.
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@
}
},
"external": true
},
"force": {
"external": true,
"subtopics": {
"org": {
"description": "Manage your sandbox and scratch orgs."
}
}
}
},
"flexibleTaxonomy": true,
Expand All @@ -108,7 +100,6 @@
"prepare": "sf-install",
"test": "wireit",
"test:nuts": "nyc mocha \"./test/nut/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 2",
"test:nuts:legacy": "nyc mocha \"./test/nut/legacy/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
"test:nuts:sandbox": "nyc mocha \"./test/**/*.sandboxNut.ts\" --slow 450000 --timeout 7200000 --parallel --jobs 5",
"test:only": "wireit",
"test:watch": "mocha --watch \"./test/**/*.test.ts\"",
Expand Down
Loading
Loading