Skip to content

Commit

Permalink
feat: align topics with sf topics
Browse files Browse the repository at this point in the history
  • Loading branch information
jayree committed May 19, 2023
1 parent 8b862c9 commit acb11ae
Show file tree
Hide file tree
Showing 42 changed files with 171 additions and 128 deletions.
87 changes: 51 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,136 +17,151 @@ sfdx plugins:install @jayree/sfdx-plugin-source
## Commands

<!-- commands -->
* [`sfdx jayree:project:compare:snapshot`](#sfdx-jayreeprojectcomparesnapshot)
* [`sfdx jayree:project:fix`](#sfdx-jayreeprojectfix)
* [`sfdx jayree:source:snapshot:compare`](#sfdx-jayreesourcesnapshotcompare)
* [`sfdx jayree:source:snapshot:generate`](#sfdx-jayreesourcesnapshotgenerate)
* [`sfdx jayree:source:tracking:list`](#sfdx-jayreesourcetrackinglist)
* [`sfdx jayree:source:tracking:store:get`](#sfdx-jayreesourcetrackingstoreget)
* [`sfdx jayree:source:tracking:store:set`](#sfdx-jayreesourcetrackingstoreset)
* [`sfdx jayree:project:generate:snapshot`](#sfdx-jayreeprojectgeneratesnapshot)
* [`sfdx jayree:project:list:tracking`](#sfdx-jayreeprojectlisttracking)
* [`sfdx jayree:project:store:tracking:get`](#sfdx-jayreeprojectstoretrackingget)
* [`sfdx jayree:project:store:tracking:set`](#sfdx-jayreeprojectstoretrackingset)

### `sfdx jayree:project:fix`
### `sfdx jayree:project:compare:snapshot`

Fix retrieved metadata.
Compare sfdx source snapshot files.

```
USAGE
$ sfdx jayree:project:fix [--json] [-o <value>] [-t <value>]
$ sfdx jayree:project:compare:snapshot [--json] [--filepath <value>]
FLAGS
-o, --target-org=<value>
-t, --task=<value>... Comma-separated list of task names listed in sfdx-project.json.
--filepath=<value> [default: ./sfdx-source-snapshot.json] Path of the generated snapshot file.
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:fix
$ sfdx jayree:source:snapshot:compare
```

_See code: [src/commands/jayree/project/fix.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/fix.ts)_
_See code: [src/commands/jayree/project/compare/snapshot.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/compare/snapshot.ts)_

### `sfdx jayree:source:snapshot:compare`
### `sfdx jayree:project:fix`

compares sfdx source snapshot files
Fix retrieved metadata.

```
USAGE
$ sfdx jayree:source:snapshot:compare [--json] [--filepath <value>]
$ sfdx jayree:project:fix [--json] [-o <value>] [-t <value>]
FLAGS
--filepath=<value> [default: ./sfdx-source-snapshot.json] path of the generated snapshot file
-o, --target-org=<value>
-t, --task=<value>... Task name(s) listed in sfdx-project.json.
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:fix
```

_See code: [src/commands/jayree/source/snapshot/compare.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/source/snapshot/compare.ts)_
_See code: [src/commands/jayree/project/fix.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/fix.ts)_

### `sfdx jayree:source:snapshot:generate`
### `sfdx jayree:project:generate:snapshot`

generates sfdx source snapshot files
Generate sfdx source snapshot files.

```
USAGE
$ sfdx jayree:source:snapshot:generate [--json] [--filepath <value>]
$ sfdx jayree:project:generate:snapshot [--json] [--filepath <value>]
FLAGS
--filepath=<value> [default: ./sfdx-source-snapshot.json] path to save the generated snapshot file
--filepath=<value> [default: ./sfdx-source-snapshot.json] Path to save the generated snapshot file.
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:snapshot:generate
```

_See code: [src/commands/jayree/source/snapshot/generate.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/source/snapshot/generate.ts)_
_See code: [src/commands/jayree/project/generate/snapshot.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/generate/snapshot.ts)_

### `sfdx jayree:source:tracking:list`
### `sfdx jayree:project:list:tracking`

list changes in a scratch org by remote revision counter number
List changes in a scratch org by remote revision counter number.

```
USAGE
$ sfdx jayree:source:tracking:list -o <value> [--json] [--api-version <value>] [-r <value>]
$ sfdx jayree:project:list:tracking -o <value> [--json] [--api-version <value>] [-r <value>]
FLAGS
-o, --target-org=<value> (required) Username or alias of the target org.
-r, --revision=<value> start at a specific revision counter number
-r, --revision=<value> Start at a specific revision counter number.
--api-version=<value> Override the api version used for api requests made by this command
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:tracking:list
EXAMPLES
$ sfdx jayree:source:tracking:list
$ sfdx jayree:source:tracking:list -u me@my.org
$ sfdx jayree:source:tracking:list -u me@my.org -r 101
```

_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/source/tracking/list.ts)_
_See code: [src/commands/jayree/project/list/tracking.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/list/tracking.ts)_

### `sfdx jayree:source:tracking:store:get`
### `sfdx jayree:project:store:tracking:get`

get stored revision counter number
Get stored revision counter number.

```
USAGE
$ sfdx jayree:source:tracking:store:get -o <value> [--json]
$ sfdx jayree:project:store:tracking:get -o <value> [--json]
FLAGS
-o, --target-org=<value> (required) Username or alias of the target org.
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:tracking:store:get
EXAMPLES
$ sfdx jayree:source:tracking:store:get
$ sfdx jayree:source:tracking:store:get -u me@my.org
```

_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/source/tracking/store/get.ts)_
_See code: [src/commands/jayree/project/store/tracking/get.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/store/tracking/get.ts)_

### `sfdx jayree:source:tracking:store:set`
### `sfdx jayree:project:store:tracking:set`

store revision counter number
Store revision counter number.

```
USAGE
$ sfdx jayree:source:tracking:store:set -o <value> [--json] [--api-version <value>] [-r <value>]
$ sfdx jayree:project:store:tracking:set -o <value> [--json] [--api-version <value>] [-r <value>]
FLAGS
-o, --target-org=<value> (required) Username or alias of the target org.
-r, --revision=<value> revision counter number (default: remote revision counter number)
-r, --revision=<value> Revision counter number (default: remote revision counter number).
--api-version=<value> Override the api version used for api requests made by this command
GLOBAL FLAGS
--json Format output as json.
ALIASES
$ sfdx jayree:source:tracking:store:set
EXAMPLES
$ sfdx jayree:source:tracking:store:set
$ sfdx jayree:source:tracking:store:set -u me@my.org
$ sfdx jayree:source:tracking:store:set -u MyTestOrg1 -r 101
```

_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/source/tracking/store/set.ts)_
_See code: [src/commands/jayree/project/store/tracking/set.ts](https://github.com/jayree/sfdx-plugin-source/blob/v1.2.4/src/commands/jayree/project/store/tracking/set.ts)_
<!-- commandsstop -->

## Hooks
Expand Down
28 changes: 14 additions & 14 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
[
{
"command": "jayree:project:fix",
"command": "jayree:project:compare:snapshot",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["json", "target-org", "task"],
"alias": ["jayree:source:fix"]
"flags": ["filepath", "json"],
"alias": ["jayree:source:snapshot:compare"]
},
{
"command": "jayree:source:snapshot:compare",
"command": "jayree:project:fix",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["filepath", "json"],
"alias": []
"flags": ["json", "target-org", "task"],
"alias": ["jayree:source:fix"]
},
{
"command": "jayree:source:snapshot:generate",
"command": "jayree:project:generate:snapshot",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["filepath", "json"],
"alias": []
"alias": ["jayree:source:snapshot:generate"]
},
{
"command": "jayree:source:tracking:list",
"command": "jayree:project:list:tracking",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["api-version", "json", "revision", "target-org"],
"alias": []
"alias": ["jayree:source:tracking:list"]
},
{
"command": "jayree:source:tracking:store:get",
"command": "jayree:project:store:tracking:get",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["json", "target-org"],
"alias": []
"alias": ["jayree:source:tracking:store:get"]
},
{
"command": "jayree:source:tracking:store:set",
"command": "jayree:project:store:tracking:set",
"plugin": "@jayree/sfdx-plugin-source",
"flags": ["api-version", "json", "revision", "target-org"],
"alias": []
"alias": ["jayree:source:tracking:store:set"]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default class CompareSourceSnapshot extends SfCommand<CompareResponse> {
filepath: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
};
static readonly requiresProject = true;
static readonly deprecateAliases = true;
static readonly aliases: string[];
run(): Promise<CompareResponse>;
}
export {};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/commands/jayree/project/compare/snapshot.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commands/jayree/project/fix.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commands/jayree/project/fix.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ export default class GenerateSourceSnapshot extends SfCommand<AnyJson> {
filepath: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
};
static readonly requiresProject = true;
static readonly deprecateAliases = true;
static readonly aliases: string[];
run(): Promise<AnyJson>;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/commands/jayree/project/generate/snapshot.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export default class SourceTrackingList extends SfCommand<AnyJson> {
revision: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
};
static readonly requiresProject = true;
static readonly deprecateAliases = true;
static readonly aliases: string[];
run(): Promise<AnyJson>;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit acb11ae

Please sign in to comment.