You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Initializes and subsequently generates a typespec client library directory from a local azure-rest-api-specs repo.
228
-
229
-
This command is used to generate a client library from a local azure-rest-api-specs repository. No additional
230
-
commands are needed to generate the client library.
236
+
This command is used to update an existing client library.
231
237
232
238
Args:
233
-
tsp_config_path: The path to the local tspconfig.yaml file.
234
-
repo_path: The path to the repository root (i.e. ./azure-sdk-for-python/).
239
+
:param str package_path: The path to the directory of the tsp-location.yaml (i.e. ./azure-sdk-for-python/sdk/eventgrid/azure-eventgrid).
240
+
:param Optional[str] commit_hash: Optional. The commit hash to update to.
241
+
:param Optional[str] repo: Optional. Repository where the project is defined.
242
+
:param Optional[str] tsp_config: Optional. Path to tspconfig.yaml.
243
+
:param Optional[str] local_spec: Optional. Path to the local TypeSpec project (../azure-rest-api-specs/specification/eventgrid/Azure.Messaging.EventGrid/).
235
244
236
245
Returns:
237
-
A dictionary containing the result of the command. """
246
+
A dictionary containing the result of the command.
247
+
"""
238
248
try:
249
+
# Build TypeSpec arguments
250
+
typespec_args= {
251
+
"output-dir": package_path
252
+
}
239
253
240
-
# Run the init command with local path using the combined function
0 commit comments