Skip to content

Commit 0a5d44a

Browse files
committed
Allow from standard in
1 parent 48fe190 commit 0a5d44a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

make_release/twin-tweaks.nu

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
def "twin format" [filename] {
1+
def "twin format" [filename?] {
22
use std/clip
33
use std-rfc/str
44

5+
let input = $in
6+
7+
let twin_content = (
8+
match $filename {
9+
null => $input
10+
_ => { open --raw $filename }
11+
}
12+
)
13+
514
{
615
Authorization: $'Bearer (kv get -u OPENROUTER_API_KEY)'
716
}
@@ -11,7 +20,7 @@ def "twin format" [filename] {
1120
Rewrite the following auto-generated changelog so it's more natural. For example, change things like 'rgwood created [Bump dependencies...' to 'rgwood [bumped dependencies...'. Keep the inline links. Make sure to keep ALL original URLs! When returning the text, do not include any explaination of the change or the surrounding backticks around the result:
1221
1322
```
14-
(open --raw $filename)
23+
($twin_content)
1524
```
1625
"
1726
| str unindent

0 commit comments

Comments
 (0)