Skip to content

feat: Make standalone CLI #1496

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

Merged
merged 1 commit into from
May 6, 2025
Merged

feat: Make standalone CLI #1496

merged 1 commit into from
May 6, 2025

Conversation

chaynabors
Copy link
Member

@chaynabors chaynabors commented May 3, 2025

TODO

  • Fix clippy lints
  • Windows compilation and testing
  • Self-update logic for standalone cli (optional)
  • Execute standalone cli from q_cli
  • Bundle standalone cli with q_cli
  • Linux compilation and testing
  • Manually merge commits after May 1st into the branch
  • Fix CI/CD
  • Add powershell execute tool

@chaynabors chaynabors force-pushed the chay/standalone-cli-binary branch from 4ecda42 to a1e1f71 Compare May 3, 2025 08:49
@codecov-commenter
Copy link

codecov-commenter commented May 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.75%. Comparing base (a7d09a7) to head (df3940e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1496   +/-   ##
=======================================
  Coverage   16.75%   16.75%           
=======================================
  Files         213      213           
  Lines       20704    20704           
  Branches      871      871           
=======================================
  Hits         3468     3468           
  Misses      17236    17236           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chaynabors chaynabors changed the title feat: standalone CLI binary feat: Add Windows support May 5, 2025
@chaynabors chaynabors marked this pull request as ready for review May 5, 2025 08:42
@chaynabors chaynabors requested a review from a team May 5, 2025 08:42
@chaynabors chaynabors marked this pull request as draft May 5, 2025 08:43
let md = ent.metadata().await?;

let modified_timestamp = md.modified()?.duration_since(std::time::UNIX_EPOCH)?.as_secs();
let datetime = time::OffsetDateTime::from_unix_timestamp(modified_timestamp as i64).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is probably a super unlikely scenario but if modified_timestamp is nil with the unwrap, wouldn't this panic?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing out, there shouldn't be unwraps like this in production code. Only ported whats on main 🤦

@chaynabors chaynabors changed the title feat: Add Windows support feat: Make standalone CLI May 6, 2025
remove chat from q_cli

give temporary name

rename chat-cli crate

checkpoint

finish fixing lints

support windows

fix more osx lints

fix: compile q and qchat on Linux

bundle qchat with the desktop app

fix: more broken lints on linux, remove unused code

add q issue

add chat execute

add copying chat binary in appimage install

port thinking tool

port execute_bash summary from main

fix build

partial #1403

sdjifodjio

run fmt
@chaynabors chaynabors force-pushed the chay/standalone-cli-binary branch from 4f25dd0 to df3940e Compare May 6, 2025 03:41
@chaynabors chaynabors merged commit df3940e into main May 6, 2025
7 of 10 checks passed
@chaynabors chaynabors deleted the chay/standalone-cli-binary branch May 6, 2025 03:48
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