Skip to content

Gemini code assist attempt to get everything green#1216

Closed
kevmoo wants to merge 1 commit intonushell:mainfrom
kevmoo:fix_lints
Closed

Gemini code assist attempt to get everything green#1216
kevmoo wants to merge 1 commit intonushell:mainfrom
kevmoo:fix_lints

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Feb 5, 2026

Many of these seem great, but I thought I'd include the lot to let you pick through

@fdncred
Copy link
Contributor

fdncred commented Feb 5, 2026

conflicts need to be resolved first.

Many of these seem great, but I thought I'd include the lot to let you pick through
@kevmoo
Copy link
Contributor Author

kevmoo commented Feb 5, 2026

done

--before (-b): duration
--dir (-d)
--path(-p): list<string@"nu-complete history dir">
--path(-p): list<string>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there not a a nu-complete history dir command to complete this with?

@@ -1 +0,0 @@
source language/playground/lib.nu No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

does removing this break the functionality?

@@ -1 +0,0 @@
source language/std/date.nu
Copy link
Contributor

Choose a reason for hiding this comment

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

samme question? does it not exist or what?

#!/usr/bin/env nu
use .../stdlib-candidate/std-rfc str

def dedent []: string -> string {
Copy link
Contributor

Choose a reason for hiding this comment

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

dedent exists in the std-lib or std-rfc. not sure why we need to repeat it here

def save_screenshot [ method, theme_name ] {
use .../stdlib-candidate/std-rfc/str

def dedent []: string -> string {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, why don't we just use the stdlib where it already exists?

let ps_script = $"
use .. *
source ($name)
source ../nu-themes/($theme_name).nu
Copy link
Contributor

@fdncred fdncred Feb 5, 2026

Choose a reason for hiding this comment

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

i think this depends on where you run it from. might be better to do a const p = path self at the top of the file to figure where we're at first.

Copy link
Contributor

@fdncred fdncred left a comment

Choose a reason for hiding this comment

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

Generally ok changes. Just a few comments. I wrote a lot of this slop. LOL. Happy to se it cleaned up. Thanks.

@kevmoo
Copy link
Contributor Author

kevmoo commented Feb 5, 2026

For all of these, my code assistant did the hacking. I just told it to try to get analysis green.

I 100% try to avoid creating AI slop. In this case I was hoping a few of there were useful.

I'm going to close out the PR, but I'll leave the branch if you want to try to cherry-pick any of the one-off things that look reasonable

@kevmoo kevmoo closed this Feb 5, 2026
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