Skip to content

Commit

Permalink
refactor(cli): allow .rest files
Browse files Browse the repository at this point in the history
Allow running files ending with `.rest`.
  • Loading branch information
hougesen authored Oct 29, 2023
1 parent 2dbca38 commit ea2a150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hitt-cli/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn handle_dir_entry(
let entry_path = entry.path();

if let Some(ext) = entry_path.extension() {
if ext == "http" {
if ext == "http" || ext == "rest" {
return handle_file(http_client, entry_path, args).await;
}
}
Expand Down

0 comments on commit ea2a150

Please sign in to comment.