Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli punchlist #1272

Merged
merged 4 commits into from
Jan 24, 2025
Merged

Cli punchlist #1272

merged 4 commits into from
Jan 24, 2025

Conversation

brennanjl
Copy link
Collaborator

@brennanjl brennanjl commented Jan 22, 2025

Small punchlist items in kwil-cli that I am fixing as I make the docs. Nothing major here, just formatting changes for outputs or minor bug fixes.

Changes so far include:

  • fixing kwil-cli utils generate-key
  • renaming flags for new CLI functions to make them more intuitive
  • maintained ordering of columns when printing query results
  • auto-formatting and wrapping for CLI --help flag based on terminal width
  • fixed and added tests for a bug where special functions were not being copied properly to a new namespace
  • Made array_append args optionally be compatible Postgres, but kept our modified version as well.

@brennanjl brennanjl marked this pull request as ready for review January 23, 2025 22:43
Comment on lines +11 to +14
// wrapTextToTerminalWidth wraps text by detecting the current
// terminal width (columns) and using that as the wrap limit.
// If it can't get the terminal width, it will wrap it to 80
func wrapTextToTerminalWidth(text string) string {
Copy link
Member

Choose a reason for hiding this comment

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

Excellent! The lack of wrapping has really stood out to me, but never took the time to propose a solution. 👍

@jchappelow jchappelow merged commit e85a0d0 into main Jan 24, 2025
2 checks passed
@jchappelow jchappelow deleted the cli-punchlist branch January 24, 2025 15:23
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