forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the 'pa solution init' command solving pnp#953
- Loading branch information
1 parent
8dba1ad
commit 477ab91
Showing
19 changed files
with
774 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# pa solution init | ||
|
||
Initializes a directory with a new CDS solution project | ||
|
||
## Usage | ||
|
||
```sh | ||
pa solution init [options] | ||
``` | ||
|
||
## Options | ||
|
||
Option|Description | ||
------|----------- | ||
`--help`|output usage information | ||
`--publisherName <publisherName>`|Name of the CDS solution publisher. | ||
`--publisherPrefix <publisherPrefix>`|Customization prefix value for the CDS solution publisher. | ||
`-o, --output [output]`|Output type. `json|text`. Default `text` | ||
`--verbose`|Runs command with verbose logging | ||
`--debug`|Runs command with debug logging | ||
|
||
## Remarks | ||
|
||
PublisherName only allows characters within the ranges `[A-Z]`, `[a-z]`, `[0-9]`, or `_`. The first character may only be in the ranges `[A-Z]`, `[a-z]`, or `_`. | ||
|
||
PublisherPrefix must be 2 to 8 characters long, can only consist of alpha-numerics, must start with a letter, and cannot start with 'mscrm'. | ||
|
||
## Examples | ||
|
||
Initializes a CDS solution project using _yourPublisherName_ as publisher name and _ypn_ as publisher prefix | ||
|
||
```sh | ||
pa solution init --publisherName yourPublisherName --publisherPrefix ypn | ||
``` | ||
|
||
## More information | ||
|
||
- Create and build a custom component: [https://docs.microsoft.com/en-us/powerapps/developer/component-framework/create-custom-controls-using-pcf](https://docs.microsoft.com/en-us/powerapps/developer/component-framework/create-custom-controls-using-pcf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
const prefix: string = 'pa'; | ||
|
||
export default { | ||
PCF_INIT: `${prefix} pcf init` | ||
PCF_INIT: `${prefix} pcf init`, | ||
SOLUTION_INIT: `${prefix} solution init` | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmands/pcf/pcf-init/template-variables.ts → ...mmands/pcf/pcf-init/pcf-init-variables.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.