Skip to content

Commit

Permalink
Merge pull request #6 from OOlashyn/internal-command-renaming
Browse files Browse the repository at this point in the history
Update cli command to correspond to latest pac cli syntax
  • Loading branch information
OOlashyn authored Nov 19, 2024
2 parents ba010aa + c4f88ee commit 545adc8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the Power Pages Helper extension will be documented in this file.

## [1.4.1]

### Changed

- Switch powerpages to pages in CLI commands

## [1.4.0]

### Changed
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ Calling out known issues can help limit users opening duplicate issues against y

## Release Notes

### 1.4.1

#### Changed

- Switch powerpages to pages in CLI commands

### 1.4.0

#### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Power Pages Helper",
"description": "Set of commands to simplify work with Power Platform CLI for Power Pages/Power Apps Portals",
"publisher": "oleksandr-olashyn",
"version": "1.4.0",
"version": "1.4.1",
"engines": {
"vscode": "^1.55.0"
},
Expand Down
10 changes: 5 additions & 5 deletions src/Helpers/Commands.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class Commands {
public static PortalList() {
return 'pac powerpages list';
return 'pac pages list';
}

public static DownloadPortal(localPath: string, websiteId: string, overwritePortal: string | undefined,
Expand All @@ -9,18 +9,18 @@ export class Commands {
const includeEntities = includedEntities ? `-ie "${includedEntities}"`: '';
const excludeEntities = excludedEntities ? `-xe "${excludedEntities}"`: '';
const mVersion = modelVersion ? `-mv "${modelVersion}"`: '';
return `pac powerpages download -p "${localPath}" -id ${websiteId} ${overwriteText} ${includeEntities} ${excludeEntities} ${mVersion}`;
return `pac pages download -p "${localPath}" -id ${websiteId} ${overwriteText} ${includeEntities} ${excludeEntities} ${mVersion}`;
}

public static UploadPortal(localPath: string, deploymentProfile: string | undefined) {
const command = deploymentProfile
? `pac powerpages upload -p "${localPath}" --deploymentProfile "${deploymentProfile}"`
: `pac powerpages upload -p "${localPath}"`;
? `pac pages upload -p "${localPath}" --deploymentProfile "${deploymentProfile}"`
: `pac pages upload -p "${localPath}"`;
return command;
}

public static BootstrapMigrate(localPath: string){
return `pac powerpages bootstrap-migrate -p "${localPath}"`;
return `pac pages bootstrap-migrate -p "${localPath}"`;
}

public static AuthList() {
Expand Down

0 comments on commit 545adc8

Please sign in to comment.