Skip to content

Conversation

@john-b-rush
Copy link
Contributor

No description provided.

@john-b-rush john-b-rush requested a review from Copilot June 8, 2025 19:06
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 modifies how help aliases are formatted by removing option placeholders and increasing the column width; it also updates a fallback usage hint in the TUI parser and simplifies the create-volume usage hint.

  • Strips optional flag placeholders from several command aliases and expands alias padding from 30 to 40 characters.
  • Changes the fallback error usage hint to reference a general /help command.
  • Reduces the create-volume usage_hint to only include the required --name parameter.

Reviewed Changes

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

File Description
chuck_data/ui/help_formatter.py Removed detailed option placeholders from certain commands and increased padding.
chuck_data/service.py Updated fallback usage message to use a generic /help reference.
chuck_data/commands/create_volume.py Simplified the usage_hint by omitting optional flags.
Comments suppressed due to low confidence (1)

chuck_data/commands/create_volume.py:108

  • The updated usage_hint omits the optional flags (--catalog_name, --schema_name, --volume_type), which could confuse users who need those options; consider restoring them to the hint.
usage_hint="Usage: /create-volume --name <volume_name>",

alias = f"{alias} <query>"
elif cmd_name == "scan-schema-for-pii" or cmd.name == "scan-schema-for-pii":
alias = f"{alias} [--catalog_name <catalog>] [--schema_name <schema>]"
alias = f"{alias}"
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

These assignments simply reassign the same value to alias and are effectively no-ops; consider removing these redundant branches or combining them with the default case.

Copilot uses AI. Check for mistakes.

# Format the command with its description
return f"{alias:<30} - {cmd.description}"
return f"{alias:<40} - {cmd.description}"
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

The hard-coded padding width 40 is a magic number; extracting it into a named constant (e.g., ALIAS_COLUMN_WIDTH) would improve readability and ease future adjustments.

Suggested change
return f"{alias:<40} - {cmd.description}"
return f"{alias:<{ALIAS_COLUMN_WIDTH}} - {cmd.description}"

Copilot uses AI. Check for mistakes.
@john-b-rush john-b-rush merged commit 361bb00 into main Jun 8, 2025
2 checks passed
@john-b-rush john-b-rush deleted the help-fixes branch June 8, 2025 19:08
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.

2 participants