Commit graph

15 commits

Author SHA1 Message Date
64db42527b refactor: preserve terminal screen and scrollbuffer (#13)
Maintain the terminal output. If clearing the screen and scrollbuffer is desired, it should be wrapped in an upstream script.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/13
2026-04-12 10:42:17 +02:00
29090ad555 fix: append search parameters to URL only if set (#14)
Append search parameters to URL only if search parameters are provided. This means that "?" will not be appended to the URL if no parameters are provided.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/14
2026-04-12 10:42:00 +02:00
832bea4252 fix: print first response header to CLI (#12)
Let's print the first response header in its entirety as opposed to the response code and.. the first word of the response header text. That is the main reason why we do this, let's just print the whole line.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/12
2026-04-06 11:31:39 +02:00
7b70a6e51d fix: accept at least one argument (#11)
We should accept at least one argument since we made the second argument optional in #9

Reviewed-on: https://codeberg.org/vlw/curl/pulls/11
2026-04-06 11:17:12 +02:00
vlw
e015174467 feat: print response code to CLI (#10)
Closes #8

Reviewed-on: https://codeberg.org/vlw/curl/pulls/10
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2026-04-06 10:25:27 +02:00
328cebc703 feat: default method to GET if not provided (#9)
Set the default request method to `GET` if no method is provided

Reviewed-on: https://codeberg.org/vlw/curl/pulls/9
2026-04-06 10:25:07 +02:00
a42be0792c docs: echo success message when new config is generated (#7)
Reviewed-on: https://codeberg.org/vlw/curl/pulls/7
2026-03-31 12:02:26 +02:00
dfd0664255 style: use lower case for variables (#6)
Use lower case for variables and upper case for constants to follow common conventions.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/6
2026-03-31 12:02:06 +02:00
vlw
82f4938be0 feat: add script to save and load configs (#5)
In this PR we add the ability to save, move, and load configurations with a new `save.sh` script.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/5
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2026-03-29 13:47:09 +02:00
vlw
0ddb72a05f docs(nit): we have food at home reference in README (#4)
This might be the silliest PR I have made to date, but I just HAD to fix the stupid reference I made. The pain is real.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/4
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2026-03-14 14:13:15 +01:00
vlw
31d79e0c0d feat: save output of response headers and body to files (#3)
In this PR we add a new directly to store the files used with curl. We also put the response body and headers into files now instead of echoing them to the console. This makes them easier to read, and we can pretty-print JSON response bodies with proper syntax highlighting (and more). Since we have a few files now, I've also added an "init.sh" file that can be used to create the necessary files on first load.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/3
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2026-03-14 10:40:50 +01:00
73bf60d031 feat: add headers.json for specifying optional request headers (#2)
This PR replaces `key.txt` with `headers.json` which allows for optional request headers to be set.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/2
2025-09-01 15:29:13 +02:00
vlw
d9fa939da5 doc(fix): README nit fixes (#1)
Add public domain mark badge as well as some other fixes to README.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/1
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2025-02-09 10:30:01 +00:00
vlw
ee7f36e1c5 doc: add README.md 2025-02-09 10:19:06 +00:00
3a60df64ee initial commit 2025-02-09 09:25:13 +01:00