Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A terminal API Client that comes in handy. // Lightweight alternative to postman

License

NotificationsYou must be signed in to change notification settings

wllfaria/hac

Repository files navigation

        ,--,                                ,--.'|   ,---,         ,----..     ,--,  | :  '  .' \       /   /   \ ,---.'|  : ' /  ;    '.    |   :     :|   | : _' |:  :       \   .   |  ;. /:   : |.'  |:  |   /\   \  .   ; /--` |   ' '  ; :|  :  ' ;.   : ;   | ;    '   |  .'. ||  |  ;/  \   \|   : |    |   | :  | ''  :  | \  \ ,'.   | '___ '   : |  : ;|  |  '  '--'  '   ; : .'||   | '  ,/ |  :  :        '   | '/  :;   : ;--'  |  | ,'        |   :    / |   ,/      `--''           \   \ .'  '---'                        `---`

A handy API client for your terminal!


HAC is an API client like Postman that runs on your terminal. We have thegoal of making easy to test and document APIs while being completely offline,free and open source.

Preview

Expand to see more examples

Creating a new request

Error on invalid uri

Table of contents

Try it

Nix ❄️

If you already have Nix setup with flake support, you can try out hac with thenix run command:

nix run github:wllfaria/hac

Nix will build and run hac.

If you want to pass arguments this way, use e.g.nix run github:wllfaria/hac -- -h

Installation

This section should guide you through the hac installation process.

You can get hac with cargo, or get the latest releasetag.

Installing with cargo

Note

you need rust v1.76 or newer

You can get hac from crates.io with:

cargo install hac-client

Building from source

Clone the repository into your machine, and you'll be able to run, or build byfollowing the steps below:

git clone https://github.com/wllfaria/haccd haccargo run# alternatively, you can run:cargo build --release# or if you have just:just build# the binary will be located at target/release/hac

Important

hac is in its very early stages of development, new features are added constantly,and we have many features planned, feel free to report any bugs, ask for features ordiscuss ideas.

Documentation

Note

Documentation is still a work in progress

Documentation can be found in thehac wiki

Customization

Customizing hac is as simple as editing toml files on the config directory, which canbe in different places based on your system and maybe in your environment variables, butyou can run the following command to know where hac is looking for your configuration:

# this command will print the path to the configuration directory hac is trying to loadhac --config-dir

Note

You can check all the configuration options and what they mean in the wiki secionfor customizing hac

hac comes with a set of default configurations, you can check more on thewiki, or if you prefer, you can dump the defaultconfiguration and colorscheme to the configuration directory by using:

hac --config-dump

Tip

If you want to save the config to a file, you can do as follows.

hac --config-dump> hac.toml

Contributing

All contributions are welcome! Just open a pull request. Please readCONTRIBUTING.md

Changelog

Changelogs can be foundhere

About

A terminal API Client that comes in handy. // Lightweight alternative to postman

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp