Skip to content

Commit bc4c0f2

Browse files
committed
removecli
1 parent 6435dea commit bc4c0f2

File tree

5 files changed

+33
-228
lines changed

5 files changed

+33
-228
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,13 @@ jobs:
4444
- name: Pack NuGet packages
4545
run: dotnet pack src/MarkItDown.Core/MarkItDown.Core.csproj --configuration Release --no-build --output ./artifacts
4646

47-
- name: Publish CLI
48-
run: dotnet publish src/MarkItDown.Cli/MarkItDown.Cli.csproj --configuration Release --no-build --output ./artifacts/cli
49-
50-
- name: Archive CLI
51-
run: |
52-
cd artifacts/cli
53-
zip -r ../markitdown-cli.zip .
54-
5547
- name: Upload artifacts
5648
uses: actions/upload-artifact@v4
5749
with:
5850
name: nuget-packages
5951
path: |
6052
./artifacts/*.nupkg
6153
./artifacts/*.snupkg
62-
./artifacts/markitdown-cli.zip
6354
retention-days: 5
6455

6556
publish-nuget:
@@ -97,12 +88,12 @@ jobs:
9788
OUTPUT=""
9889
PUBLISHED=false
9990
100-
for package in ./artifacts/*.nupkg; do
101-
echo "Publishing $package..."
102-
RESULT=$(dotnet nuget push "$package" \
103-
--api-key "$NUGET_API_KEY" \
104-
--source https://api.nuget.org/v3/index.json \
105-
--skip-duplicate 2>&1)
91+
for package in ./artifacts/*.nupkg; do
92+
echo "Publishing $package..."
93+
RESULT=$(dotnet nuget push "$package" \
94+
--api-key "$NUGET_API_KEY" \
95+
--source https://api.nuget.org/v3/index.json \
96+
--skip-duplicate 2>&1)
10697
EXIT_CODE=$?
10798
echo "$RESULT"
10899
OUTPUT="$OUTPUT$RESULT"
@@ -115,29 +106,29 @@ jobs:
115106
else
116107
echo "Failed to publish $package"
117108
exit 1
118-
fi
119-
done
120-
121-
if ls ./artifacts/*.snupkg 1> /dev/null 2>&1; then
122-
for symbols in ./artifacts/*.snupkg; do
123-
echo "Publishing symbols $symbols..."
124-
RESULT=$(dotnet nuget push "$symbols" \
125-
--api-key "$NUGET_API_KEY" \
126-
--source https://api.nuget.org/v3/index.json \
127-
--skip-duplicate 2>&1)
128-
EXIT_CODE=$?
129-
echo "$RESULT"
130-
131-
if [ $EXIT_CODE -eq 0 ]; then
132-
echo "Successfully published symbols $symbols"
133-
elif echo "$RESULT" | grep -qi "already exists"; then
134-
echo "Symbols package already exists, skipping..."
135-
else
136-
echo "Failed to publish symbols package"
137-
exit 1
138109
fi
139110
done
140-
fi
111+
112+
if ls ./artifacts/*.snupkg 1> /dev/null 2>&1; then
113+
for symbols in ./artifacts/*.snupkg; do
114+
echo "Publishing symbols $symbols..."
115+
RESULT=$(dotnet nuget push "$symbols" \
116+
--api-key "$NUGET_API_KEY" \
117+
--source https://api.nuget.org/v3/index.json \
118+
--skip-duplicate 2>&1)
119+
EXIT_CODE=$?
120+
echo "$RESULT"
121+
122+
if [ $EXIT_CODE -eq 0 ]; then
123+
echo "Successfully published symbols $symbols"
124+
elif echo "$RESULT" | grep -qi "already exists"; then
125+
echo "Symbols package already exists, skipping..."
126+
else
127+
echo "Failed to publish symbols package"
128+
exit 1
129+
fi
130+
done
131+
fi
141132
142133
if [ "$PUBLISHED" = true ] || echo "$OUTPUT" | grep -q "Your package was pushed"; then
143134
echo "published=true" >> $GITHUB_OUTPUT
@@ -239,15 +230,11 @@ jobs:
239230
echo "" >> release_notes.md
240231
echo "## 📦 NuGet Packages" >> release_notes.md
241232
echo "" >> release_notes.md
242-
for package in ./artifacts/*.nupkg; do
243-
PACKAGE_NAME=$(basename "$package" .nupkg)
244-
BASE_NAME=$(echo "$PACKAGE_NAME" | sed "s/\.$VERSION//")
245-
echo "- [$BASE_NAME v$VERSION](https://www.nuget.org/packages/$BASE_NAME/$VERSION)" >> release_notes.md
246-
done
247-
248-
if [ -f ./artifacts/markitdown-cli.zip ]; then
249-
echo "- [markitdown-cli.zip](https://github.com/${{ github.repository }}/releases/download/v$VERSION/markitdown-cli.zip)" >> release_notes.md
250-
fi
233+
for package in ./artifacts/*.nupkg; do
234+
PACKAGE_NAME=$(basename "$package" .nupkg)
235+
BASE_NAME=$(echo "$PACKAGE_NAME" | sed "s/\.$VERSION//")
236+
echo "- [$BASE_NAME v$VERSION](https://www.nuget.org/packages/$BASE_NAME/$VERSION)" >> release_notes.md
237+
done
251238
252239
echo "" >> release_notes.md
253240
echo "---" >> release_notes.md
@@ -264,5 +251,4 @@ jobs:
264251
files: |
265252
./artifacts/*.nupkg
266253
./artifacts/*.snupkg
267-
./artifacts/markitdown-cli.zip
268254
token: ${{ secrets.GITHUB_TOKEN }}

MarkItDown.slnx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<Platform Name="x86" />
66
</Configurations>
77
<Folder Name="/src/">
8-
<Project Path="src/MarkItDown.Cli/MarkItDown.Cli.csproj" />
98
<Project Path="src/MarkItDown.Core/MarkItDown.Core.csproj" />
109
</Folder>
1110
<Folder Name="/tests/">

README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ A modern C#/.NET library for converting a wide range of document formats (HTML,
1212
- [Format Support](#-format-support)
1313
- [Quick Start](#-quick-start)
1414
- [Usage](#-usage)
15-
- [Command Line Tool](#command-line-tool)
1615
- [Architecture](#-architecture)
1716
- [Development & Contributing](#-development--contributing)
1817
- [Roadmap](#-roadmap)
@@ -25,7 +24,7 @@ A modern C#/.NET library for converting a wide range of document formats (HTML,
2524
## Features
2625

2726
**Modern .NET** - Targets .NET 9.0 with up-to-date language features
28-
📦 **NuGet Package** - Drop-in dependency for libraries and CLI workflows
27+
📦 **NuGet Package** - Drop-in dependency for libraries and automation pipelines
2928
🔄 **Async/Await** - Fully asynchronous pipeline for responsive apps
3029
🧠 **LLM-Optimized** - Markdown tailored for AI ingestion and summarisation
3130
🔧 **Extensible** - Register custom converters or plug additional caption/transcription services
@@ -239,27 +238,6 @@ var markItDown = new MarkItDown();
239238
markItDown.RegisterConverter(new MyCustomConverter(), ConverterPriority.SpecificFileFormat);
240239
```
241240

242-
### Command Line Tool
243-
244-
The package also includes a command-line tool for batch processing:
245-
246-
```bash
247-
# Install the CLI tool globally
248-
dotnet tool install --global MarkItDown.Cli
249-
250-
# Convert a file to Markdown
251-
markitdown input.html
252-
253-
# Specify output file
254-
markitdown input.html -o output.md
255-
256-
# Read from stdin
257-
echo "<h1>Hello</h1>" | markitdown
258-
259-
# Enable verbose logging
260-
markitdown input.html --verbose
261-
```
262-
263241
## 🏗️ Architecture
264242

265243
### Core Components
@@ -319,7 +297,6 @@ dotnet pack --configuration Release
319297
│ │ ├── StreamInfoGuesser.cs # MIME/charset/extension detection helpers
320298
│ │ ├── MarkItDownOptions.cs # Runtime configuration flags
321299
│ │ └── ... # Shared utilities (UriUtilities, MimeMapping, etc.)
322-
│ └── MarkItDown.Cli/ # Command-line interface (not published to NuGet)
323300
├── tests/
324301
│ └── MarkItDown.Tests/ # xUnit + Shouldly tests, Python parity vectors (WIP)
325302
├── Directory.Build.props # Shared build + packaging settings

src/MarkItDown.Cli/MarkItDown.Cli.csproj

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/MarkItDown.Cli/Program.cs

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)