@autorest/powershell 3.0.476 → 3.0.477
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"powershell/models/model-extensions.ts": "9394418ac00c3e8829760432053c087642e4222d",
|
|
72
72
|
"powershell/module/module-class.ts": "863c9fd1d0243cbe8ea6858932945f00221dd5b1",
|
|
73
73
|
"powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
|
|
74
|
-
"powershell/package.json": "
|
|
74
|
+
"powershell/package.json": "2fb6b7c62a3ed4fd836e5ff666d30b48a48652ee",
|
|
75
75
|
"powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
|
|
76
76
|
"powershell/plugins/create-commands-v2.ts": "fc36205364fa4d2aa9c0fc655dcd9a7f6f1d4063",
|
|
77
77
|
"powershell/plugins/cs-namer-v2.ts": "e294a2f5ac3db421d030a3bba8343a3d4a9ea6ab",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"powershell/resources/assets/exports/README.md": "18a2a233e6efa52daf13af5336bd7880ca3faeac",
|
|
95
95
|
"powershell/resources/assets/generate-help.ps1": "c89c2d32e94fe4a62612ecb7937983cafcf528f1",
|
|
96
96
|
"powershell/resources/assets/how-to.md": "83256042bff1af1ebf54b31f8b13fbcb785677cc",
|
|
97
|
-
"powershell/resources/assets/internal/README.md": "
|
|
97
|
+
"powershell/resources/assets/internal/README.md": "d28c195826e6da6ba8f81a23d9b32083435b40f3",
|
|
98
98
|
"powershell/resources/assets/license.txt": "b9f3180fb9aff09aa7665db6b3226e492f670be6",
|
|
99
99
|
"powershell/resources/assets/pack-module.ps1": "3a263c5fd58c6f124693c3004db4b960ed579f39",
|
|
100
100
|
"powershell/resources/assets/resources/README.md": "c532566d4700f25121ebf7cd78071002f888d096",
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Internal
|
|
2
|
-
This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/
|
|
2
|
+
This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `${$lib.path.relative($project.internalFolder, $project.customFolder)}` for all custom implementation.
|
|
3
3
|
|
|
4
4
|
## Info
|
|
5
5
|
- Modifiable: no
|
|
@@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that
|
|
|
11
11
|
The `${$lib.path.relative($project.internalFolder, $project.psm1Internal)}` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `${$project.moduleName}`. Instead, this sub-module is imported by the `${$lib.path.relative($project.internalFolder, $project.psm1Custom)}` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `${$project.moduleName}.internal\Get-Example` would call an internal cmdlet named `Get-Example`.
|
|
12
12
|
|
|
13
13
|
## Purpose
|
|
14
|
-
This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `${$project.moduleName}`.
|
|
14
|
+
This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `${$project.moduleName}`.
|