-
Notifications
You must be signed in to change notification settings - Fork 304
Gemini code assist attempt to get everything green #1216
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
Conversation
|
conflicts need to be resolved first. |
Many of these seem great, but I thought I'd include the lot to let you pick through
|
done |
| --before (-b): duration | ||
| --dir (-d) | ||
| --path(-p): list<string@"nu-complete history dir"> | ||
| --path(-p): list<string> |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this 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.
|
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 |
Many of these seem great, but I thought I'd include the lot to let you pick through