mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
77e2451da1
mdsnippets 23.0.0 introduced a breaking change - see https://github.com/SimonCropp/MarkdownSnippets/pull/360 for the motivation, and what edits need to be made. This PR updates this project for that change.
24 lines
816 B
Python
Executable File
24 lines
816 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from scriptCommon import catchPath
|
|
import os
|
|
import subprocess
|
|
|
|
# ---------------------------------------------------
|
|
# Update code examples
|
|
# ---------------------------------------------------
|
|
# For info on mdsnippets, see https://github.com/SimonCropp/MarkdownSnippets
|
|
|
|
# install dotnet SDK from http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
|
|
# Then install MarkdownSnippets.Tool with
|
|
# dotnet tool install -g MarkdownSnippets.Tool
|
|
# To update:
|
|
# dotnet tool update -g MarkdownSnippets.Tool
|
|
# To uninstall (e.g. to downgrade to a lower version)
|
|
# dotnet tool uninstall -g MarkdownSnippets.Tool
|
|
|
|
os.chdir(catchPath)
|
|
|
|
subprocess.run('dotnet tool update -g MarkdownSnippets.Tool --version 23.0.0', shell=True, check=True)
|
|
subprocess.run('mdsnippets', shell=True, check=True)
|