refactor: rewrite CLI and internal architecture #41

Merged
mvhutz merged 14 commits from feat/updated-arch into main 2026-02-07 03:25:32 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 53042ea26d - Show all commits

View File

@@ -1,7 +1,6 @@
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
@@ -89,7 +88,6 @@ func Lambda() *cobra.Command {
func main() {
lambda := Lambda()
if err := lambda.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}

View File

@@ -28,6 +28,7 @@ func LambdaConvert() *cobra.Command {
Use: "convert <input> <output>",
Short: "Convert between lambda calculus representations",
Args: cobra.ExactArgs(2),
SilenceUsage: true,
RunE: func(_ *cobra.Command, args []string) error {
var err error
inputPath, outputPath := args[0], args[1]