Skip to content

Gemini code assist attempt to get everything green - #1216

Closed
kevmoo wants to merge 1 commit into
nushell:mainfrom
kevmoo:fix_lints
Closed

kevmoo wants to merge 1 commit into
nushell:mainfrom
kevmoo:fix_lints

Conversation

@kevmoo

@kevmoo kevmoo commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

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

@fdncred

fdncred commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

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

kevmoo commented Feb 5, 2026

Copy link
Copy Markdown
Contributor Author

done

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

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.

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
Copy Markdown
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?

Comment thread modules/language/std.nu
@@ -1 +0,0 @@
source language/std/date.nu

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.

samme question? does it not exist or what?

Comment thread themes/src/make.nu
#!/usr/bin/env nu
use .../stdlib-candidate/std-rfc str

def dedent []: string -> string {

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.

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
Copy Markdown
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

@fdncred fdncred Feb 5, 2026 •

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.

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.

@fdncred fdncred left a comment

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.

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

@kevmoo

kevmoo commented Feb 5, 2026

Copy link
Copy Markdown
Contributor Author

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