Skip to content

Conversation

@NicoKaempf
Copy link
Contributor

…, and object with non-interactive usage details

@NicoKaempf NicoKaempf requested a review from kaihaase August 29, 2025 11:38
@NicoKaempf NicoKaempf self-assigned this Aug 29, 2025
@NicoKaempf NicoKaempf removed the request for review from kaihaase September 1, 2025 09:15
@NicoKaempf NicoKaempf marked this pull request as draft September 1, 2025 09:16
}

const { props, refsSet, schemaSet } = await server.addProperties({ objectsToAdd, referencesToAdd });
// Parse property arguments from CLI or prompt interactively
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following code, which generates the props, is redundant. Please move it to a method and use the method here instead.

}

const { objectsToAdd, props, referencesToAdd, refsSet, schemaSet } = await server.addProperties();
// Parse property arguments from CLI or prompt interactively
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following code, which generates the props, is redundant. Please move it to a method and use the method here instead.

}

const { props, refsSet, schemaSet } = await server.addProperties({ objectsToAdd, referencesToAdd });
// Parse property arguments from CLI or prompt interactively
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following code, which generates the props, is redundant. Please move it to a method and use the method here instead.

@NicoKaempf NicoKaempf requested a review from Copilot November 5, 2025 12:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the LT CLI tool by adding comprehensive documentation and non-interactive mode support for key commands. The changes enable users to run commands with CLI arguments instead of relying solely on interactive prompts, making the tool more suitable for automation and scripting scenarios.

Key changes:

  • Added extensive documentation files for Claude Code integration (SKILL.md, examples.md, reference.md)
  • Implemented non-interactive mode for addProp, init, module, and object commands
  • Created a new parseProperties extension to handle property parsing from CLI arguments
  • Added a claude install-skill command to install documentation for Claude Code

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/templates/claude-skills/lt-cli/reference.md New comprehensive reference documentation with command patterns, examples, and troubleshooting
src/templates/claude-skills/lt-cli/examples.md New real-world examples for various use cases (blog, e-commerce, project management, etc.)
src/templates/claude-skills/lt-cli/SKILL.md New skill definition for Claude Code integration with command syntax and best practices
src/interfaces/extended-gluegun-toolbox.ts Added parseProperties method to toolbox interface
src/extensions/parse-properties.ts New extension implementing property parsing from CLI arguments
src/commands/server/object.ts Enhanced with non-interactive mode support using CLI arguments
src/commands/server/module.ts Enhanced with non-interactive mode support using CLI arguments
src/commands/server/add-property.ts Enhanced with non-interactive mode support and fixed empty property list handling
src/commands/fullstack/init.ts Enhanced with non-interactive mode support using CLI arguments
src/commands/claude/install-skill.ts New command to install skill files to ~/.claude/skills/
src/commands/claude/claude.ts New command group for Claude-related commands
LT-CLI-Reference.md New root-level reference documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

} = toolbox;


// const notInteractivce = toolbox.parameters.options.ni;
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented-out code should be removed. The variable notInteractivce (with typo) is defined but never used.

Suggested change
// const notInteractivce = toolbox.parameters.options.ni;

Copilot uses AI. Check for mistakes.
const { objectsToAdd: newObjects, props, referencesToAdd: newReferences, refsSet, schemaSet }
= await toolbox.parseProperties({ objectsToAdd, referencesToAdd });

// Update lists
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] This comment adds no value as it simply describes what the following code does. Consider removing it or making it more descriptive if the update logic is complex.

Suggested change
// Update lists

Copilot uses AI. Check for mistakes.
@NicoKaempf NicoKaempf marked this pull request as ready for review November 5, 2025 12:12
@kaihaase kaihaase merged commit f9b7b91 into main Nov 5, 2025
1 check passed
@kaihaase kaihaase deleted the DEV-585 branch November 5, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants