Skip to content

Commit

Permalink
fix: add back --loglevel arg for sfdx compat support
Browse files Browse the repository at this point in the history
  • Loading branch information
smithgp committed May 13, 2024
1 parent 6256497 commit 3dbf02a
Show file tree
Hide file tree
Showing 48 changed files with 174 additions and 42 deletions.
113 changes: 73 additions & 40 deletions command-snapshot.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/commands/analytics/app/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { EOL } from 'node:os';
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -33,6 +34,7 @@ export default class Create extends SfCommand<{ id?: string; events?: StreamingR
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
definitionfile: Flags.file({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/app/decouple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Decouple extends SfCommand<string> {
public static readonly examples = ['$ sfdx analytics:app:decouple -f folderId -t templateId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
folderid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/app/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Delete extends SfCommand<string> {
public static readonly examples = ['$ sfdx analytics:app:delete -f folderid'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
folderid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/app/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -50,6 +51,7 @@ export default class Display extends SfCommand<AppFolder> {
public static readonly examples = ['$ sfdx analytics:app:display -f folderId -a'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
folderid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/app/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -36,6 +37,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:app:list'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
folderid: Flags.string({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/app/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -28,6 +29,7 @@ export default class Update extends SfCommand<{ id?: string; events?: StreamingR
public static readonly examples = ['$ sfdx analytics:app:update -f folderId -t templateId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
templateid: Flags.string({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/asset/publisher/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Create extends SfCommand<string | undefined> {
public static readonly examples = ['$ sfdx analytics:asset:publisher:create -i assetId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
assetid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/asset/publisher/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Delete extends SfCommand<void> {
public static readonly examples = ['$ sfdx analytics:asset:publisher:delete -a assetId -i assetPublisherId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
id: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/asset/publisher/deleteall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Deleteall extends SfCommand<string> {
public static readonly examples = ['$ sfdx analytics:asset:publisher:deleteall -i assetId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
assetid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/asset/publisher/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -33,6 +34,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:asset:publisher:list -i assetId'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
assetid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/app/cancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -24,6 +25,7 @@ export default class Cancel extends SfCommand<void> {
public static readonly examples = ['$ sfdx analytics:autoinstall:app:cancel -i id'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
autoinstallid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/app/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -37,6 +38,7 @@ export default class Create extends SfCommand<AutoInstallRequestType | { id: str
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
templateid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/app/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -31,6 +32,7 @@ export default class Delete extends SfCommand<AutoInstallRequestType | string |
public static readonly examples = ['$ sfdx analytics:autoinstall:app:delete -f folderid'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
folderid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/app/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -37,6 +38,7 @@ export default class Update extends SfCommand<AutoInstallRequestType | string |
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
templateid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -54,6 +55,7 @@ export default class Display extends SfCommand<AutoInstallRequestType> {
public static readonly examples = ['$ sfdx analytics:autoinstall:display -i id'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
autoinstallid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/autoinstall/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import {
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -35,6 +36,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:autoinstall:list'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
};
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dashboard/history/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -34,6 +35,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:dashboard:history:list --dashboardid <dashboardid>'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dashboardid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dashboard/history/revert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -26,6 +27,7 @@ export default class Revert extends SfCommand<string | undefined> {
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dashboardid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dashboard/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
import {
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -34,6 +35,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:dashboard:list'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
};
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dashboard/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -28,6 +29,7 @@ export default class Update extends SfCommand<string | undefined> {
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dashboardid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dataflow/history/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -28,6 +29,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:dataflow:history:list --dataflowid <dataflowid> '];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dataflowid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dataflow/history/revert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -26,6 +27,7 @@ export default class Revert extends SfCommand<string | undefined> {
];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dataflowid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dataflow/job/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Display extends SfCommand<DataflowJobType> {
public static readonly examples = ['$ sfdx analytics:dataflow:job:display --dataflowjobid <dataflowjobid>'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dataflowjobid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dataflow/job/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand Down Expand Up @@ -35,6 +36,7 @@ export default class List extends SfCommand<
public static readonly examples = ['$ sfdx analytics:dataflow:job:list --dataflowid <dataflowid>'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dataflowid: Flags.salesforceId({
Expand Down
2 changes: 2 additions & 0 deletions src/commands/analytics/dataflow/job/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {
Flags,
SfCommand,
loglevel,
orgApiVersionFlagWithDeprecations,
requiredOrgFlagWithDeprecations,
} from '@salesforce/sf-plugins-core';
Expand All @@ -25,6 +26,7 @@ export default class Stop extends SfCommand<DataflowJobType> {
public static readonly examples = ['$ sfdx analytics:dataflow:job:stop --dataflowjobid <dataflowjobid>'];

public static readonly flags = {
loglevel,
'target-org': requiredOrgFlagWithDeprecations,
'api-version': orgApiVersionFlagWithDeprecations,
dataflowjobid: Flags.salesforceId({
Expand Down
Loading

0 comments on commit 3dbf02a

Please sign in to comment.