-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add Feature rename
#12
#17
Conversation
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.
The general solution is really great! Follow well all the architecture of project. There are just some adjustments
@SummerGram did you run |
btw, I found that there are some typo in the code. Do I require to create new issue and have a PR for that? |
@talis-fb Please have a look! |
You can fix them in this PR! No problemn |
@SummerGram are you going to fix the Typo?? If yes, please add a e2e test for your modification too. In #[test]
fn should_rename_requests() {
// Setup
let input = format!("treq GET {}/get --save-as request-to-be-renamed", host());
let mut cmd = run_cmd(&input);
cmd.assert().success();
// Before rename
let input = "treq run request-to-be-renamed";
let mut cmd = run_cmd(&input);
cmd.assert().success();
let input = "treq run request-renamed";
let mut cmd = run_cmd(&input);
cmd.assert().failure();
let input = "treq rename request-to-be-renamed request-renamed --no-confirm";
let mut cmd = run_cmd(&input);
cmd.assert().success();
// After rename
let input = "treq run request-to-be-renamed";
let mut cmd = run_cmd(&input);
cmd.assert().failure();
let input = "treq run request-renamed";
let mut cmd = run_cmd(&input);
cmd.assert().success();
} |
If you like you can add some other tests case. It would be awesome. But this one is the sufficient |
When will it be merged? |
@SummerGram, now. I was just waiting you confirm if you'd up the typo and test. Really great job! Very thanks for your contribution! 🤩 |
I fix the typo and add the test. Btw, what is the roadmap and the goal of this repo? |
Good question! I really need to put this in somewhere in the repo, I'm working on it. Basically the repo trying to be a improvement of HTTPie (and all Cli HTTP Clients) with focus on persistent requests and ways to manipulate them easier in terminal. A tool to bring the way we work with GUI app like Insomnia to terminal. Instead just do a "quick requests" (like the workflow of httpie and curl like apps) you have a "collection" of requests with saved body and params, and them you can submit them just changing a couple of field with a little command. For now, the priority is really implement all the "must have" features. The foundation of HTTPie interface. So, for now, we really does not have any differential except the saved requests. But in the future the ideia is focus in
|
honestly, I only use CLI app like curl and wget. For the GUI, I used postman before. Do you try to outperform them? Not sure if it can outperform curl. |
@SummerGram What do you mean with "outperform"?? |
I mean the performance of treq commands is better than other CLI app similar commands |
This is for the rename feature!