Skip to content

feat: Add format cmd#402

Merged
brian-lou merged 2 commits intomainfrom
b/locadex/add-lint-cmd
Jun 17, 2025
Merged

feat: Add format cmd#402
brian-lou merged 2 commits intomainfrom
b/locadex/add-lint-cmd

Conversation

@brian-lou
Copy link
Copy Markdown
Contributor

No description provided.

@brian-lou brian-lou requested a review from a team as a code owner June 17, 2025 04:40
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
example-next-create-app 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 4:40am
gt-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 4:40am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
example-ai-chatbot ⬜️ Ignored (Inspect) Jun 17, 2025 4:40am
example-create-react-app ⬜️ Ignored (Inspect) Jun 17, 2025 4:40am
example-gt-next-starter ⬜️ Ignored (Inspect) Jun 17, 2025 4:40am
example-vite-create-app ⬜️ Ignored (Inspect) Jun 17, 2025 4:40am

@brian-lou brian-lou merged commit 9f94c96 into main Jun 17, 2025
7 of 8 checks passed
@brian-lou brian-lou deleted the b/locadex/add-lint-cmd branch June 17, 2025 04:40
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added a new format command option (-f, --formatCmd) across Locadex CLI commands to support custom file formatting tools instead of auto-detected formatters.

  • Added formatCmd option to packages/locadex/src/types/cli.ts CLI interface for specifying custom formatting commands
  • Implemented formatting execution logic in packages/locadex/src/tasks/setup.ts using execFunction
  • Enhanced packages/locadex/src/tasks/i18n.ts with conditional logic to use custom format command or fallback to auto-detection
  • Potential security consideration: format command string validation is currently missing

4 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

import { retrieveCredentials } from 'gtx-cli/utils/credentials';
import { isGTAuthConfigured } from '../utils/config.js';
import { CliOptions } from '../types/cli.js';
import { execFunction } from 'src/utils/exec.js';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

logic: Relative import path 'src/utils/exec.js' may cause issues. Should use '../utils/exec.js' instead

Suggested change
import { execFunction } from 'src/utils/exec.js';
import { execFunction } from '../utils/exec.js';

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.

1 participant