Jean-Christophe Amiel

Results 93 issues of Jean-Christophe Amiel

With `chrono 0.4.20`, using `let now: DateTime = Local::now();` results in a panic. ``` thread 'main' panicked at 'unable to parse localtime info: Io(Os { code: 2, kind: NotFound, message:...

Given the following (invalid) Hurl file: ``` GET "https://example.org" ``` We get this error message: ``` $ echo 'GET "https://example.org"' | hurl error: Error { pos: Pos { line: 1,...

enhancement

Currently, to inject a date in a variable, one should compute it beforehand, before running the Hurl File. For instance (https://hurl.dev/docs/frequently-asked-questions.html#can-i-do-calculation-within-a-hurl-file): ``` TODAY=$(date '+%y%m%d') TOMORROW=$(date '+%y%m%d' -d"+1days") hurl --variable "today=$TODAY"...

enhancement
topic: generators

When running: ``` $ hurl --help hurl 1.6.1 libcurl/7.77.0 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 1.42.0 Run hurl FILE(s) or standard input ... ``` Output is not coloured, while: ``` $ hurl hurl...

bug

Given the following html: ```html var s = '{"first_name" : "Sammy", "last_name" : "Shark", "location" : "Ocean"}'; var obj = JSON.parse(s); document.getElementById("user").innerHTML = "Name: " + obj.first_name + " "...

enhancement

(Imported from original discussion @spaceaardvark) I don't think there's a way to do this yet, but it would be great to have an easy way to reuse a request in...

enhancement
topic: import

(Imported from original discussion @sparty02) Would be interesting to have a VS Code extension, similar to the existing [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension, but that supported hurl syntax.

enhancement
topic: ide support

(Imported from original discussion @leeola) To rapidly create tests it would be helpful to be able to create Hurl Entries from a Curl command directly. Eg allowing a workflow of...

Given this Hurl file: ``` GET http://localhost:8000/hello HTTP 200 ``` With no new line at the end of HTTP 200 (beware that vim adds a newline by default), `hurlfmt` displays...

bug

We're changing the `Template` AST struct from: ```rust pub struct Template { pub quotes: bool, pub elements: Vec, pub source_info: SourceInfo, } ``` to ```rust pub struct Template { pub...