juicecli

command module
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

JuiceCLI

JuiceCLI is a powerful command-line tool designed to enhance development efficiency with the Juice ORM framework.

Features

  • Interface Implementation Generator: Automatically generate implementation code for interfaces
  • Smart Namespace Suggestion: Get intelligent suggestions for package namespaces
  • XML Configuration: Customize implementation details through XML configuration

Installation

go install github.com/go-juicedev/juicecli@latest

Usage

Generate Implementation

Generate implementation for an interface:

juicecli impl --type UserRepository

Options:

  • --type, -t: The interface type name to generate implementation for (required)
  • --namespace, -n: The package name for the generated implementation. If not specified, it will be auto-generated
  • --output, -o: The output file path. If not specified, output will be written to stdout
  • --config, -c: The configuration file path. If not specified, it will search for:
    • juice.xml
    • config/juice.xml
    • config.xml
    • config/config.xml

Examples:

# Basic usage
juicecli impl --type UserRepository

# With custom namespace and output file
juicecli impl --type UserRepository --namespace repository --output user_repository.go

# With custom config file
juicecli impl --type UserRepository --config custom.xml
Get Namespace Suggestion

Get a suggested namespace for your interface:

juicecli tell --type UserRepository

Options:

  • --type, -t: The interface type name to analyze (required)

Configuration

The implementation generator can be customized through XML configuration files. Example configuration:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <settings>
        <!-- Custom settings here -->
    </settings>
</configuration>

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmds
internal
ast

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL