prdescription

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

cmd/craft/prdescription/prdescription.go

Index

Constants

This section is empty.

Variables

View Source
var PRDescriptionCmd = &cobra.Command{
	Use:     "pr-description",
	Aliases: []string{"pr"},
	Short:   "Generates a suggested pull request description.",
	RunE: func(cmd *cobra.Command, args []string) error {
		presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr())

		presenter.Summary("Crafting a pull request description...")
		presenter.Info("AI analysis complete. Suggested description:")
		presenter.Newline()

		simulatedPRBody := `### Summary

This change introduces the new 'craft' pillar to the CLI, providing a dedicated space for AI-assisted creative tasks.

### Changes
- Added 'craft message' to generate commit messages.
- Added 'craft pr-description' as a placeholder for generating PR bodies.
- Refactored the strategic kickoff into 'craft kickoff'.`

		fmt.Fprintln(presenter.Out(), simulatedPRBody)
		return nil
	},
}

PRDescriptionCmd represents the craft pr-description command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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