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
* initial migrated script
* minor
* run black before update, refactor black
* update pipeline step
* add tests to azpysdk
* minor
* update doc
* delete old script mentions
* fail in update if black fails
* minor fix
* fix link
* dont omit mgmt
* fix, dont error if no samples dir
* move test to proper location
Copy file name to clipboardExpand all lines: doc/dev/code_snippets.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ All code snippets in README should be up to date and runnable. And we want to ha
4
4
5
5
-[Define snippet definitions in the samples folder](#create-samples)
6
6
-[In README, refer to the code snippets from the samples](#refer-samples)
7
-
-[Run `python_snippet_updater.py`to keep them in sync](#python_snippet_updater-tool)
7
+
-[Run `azpysdk update_snippet .` from the package directory to keep them in sync](#run-update_snippet-tool)
8
8
9
9
## Create samples
10
10
@@ -40,10 +40,13 @@ If you have a file in `samples\text_example_async.py` with a snippet named `asyn
40
40
41
41
> Make sure you include a Python code fence within the snippet reference!
42
42
43
-
## Run python_snippet_updater tool
43
+
## Run update_snippet tool
44
+
45
+
The update_snippet tool is included in the [azpysdk CLI](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/tool_usage_guide.md), which is installed with `azure-sdk-tools`.
0 commit comments