Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

permissions:
contents: read

jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.15.2

- name: Run tests
run: zig build test

- name: Build project
run: zig build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: repolicense-${{ matrix.os }}
path: zig-out/bin/repolicense*

fmt-check:
name: Format Check
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.15.2

- name: Check formatting
run: zig fmt --check src/
218 changes: 0 additions & 218 deletions CI_CD.md

This file was deleted.

1 change: 1 addition & 0 deletions COMPARISON.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This CLI tool (`repolicense-cli`) is a command-line implementation of the web-ba
| Mermaid Diagram Export | ✅ Copy to clipboard | ❌ Not implemented |
| Download Tree | ✅ JSON download | ❌ Not implemented |
| Visual Design | ✅ Modern UI with Shoelace | ✅ Clean text output |
| License Compatibility Checker | ❌ Not implemented | ✅ New feature for checking compatible licenses when forking/combining projects |
| Platform | 🌐 Browser-based | 💻 Native CLI |

## Architecture Differences
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Thank you for your interest in contributing to repolicense-cli!

## Prerequisites

- Zig 0.13.0 or later: [Download Zig](https://ziglang.org/download/)
- Zig 0.15.2 or later: [Download Zig](https://ziglang.org/download/)

## Building

Expand All @@ -27,15 +27,15 @@ zig build test
## Code Style

- Follow Zig standard library conventions
- Use 4 spaces for indentation
- Use 2 spaces for indentation
- Keep functions focused and concise
- Add comments for complex logic

## Adding New Licenses

To add a new license to the decision tree:

1. Open `src/main.zig`
1. Open `src/tree.zig`
2. Add a new `Node` constant in the `buildDecisionTree()` function
3. Update the tree structure to include your new license
4. Update the README with the new license information
Expand Down
Loading
Loading