A web based terminal application for executing local and remote commands.
The latest version of the terminal can be found here: http://fugazi.io.
Here's a short introduction video:
Documentation can be found here: https://fugazi-io.github.io.
You can contact us here: https://gitter.im/fugazi-io/Lobby.
Fugazi isn't a regular terminal, it won't execute the commands which you are used to.
In order to execute commands you need to load modules into the client, these modules will define the
commands which can be executed.
The client comes with a some built-in commands, and here's a short example of what you can do with it:
In the fugazi terminal try to execute:
get "https://jsonplaceholder.typicode.com/posts/1"
This command will make an http GET request to that url and output the response.
(you can use other urls of course, as long as they support CORS).
If you only want to get the data from the response you can do so like this:
r = (get "https://jsonplaceholder.typicode.com/posts/1")
extract data from $r
Here we used a variable to hold the response and then extracted the data part from it, but you can do it in one line using nested commands:
extract data from (get "https://jsonplaceholder.typicode.com/posts/1")
The only problem left though is that the return value is a string and not a map.
This happens because the response doesn't have json content type.
It's easy to go around it though:
r = (get "https://jsonplaceholder.typicode.com/posts/1")
d = (extract data from $r)
json parse $d
Or, in one line:
json parse (extract data from (get "https://jsonplaceholder.typicode.com/posts/1"))
The client requires no servers, other than hosting the static files (scripts, styles, etc).
To run locally install the npm package:
npm install @fugazi/webclientThen build the scripts:
npm run transpileAfter the compilation ended, serve the files:
npm run serveThat's it, you have fugazi locally served, open http://localhost:3330/index.hml in your browser.
If you want to develop with/for fugazi then you better clone this repo.
Here's how to run it locally:
- Clone the repo and change into the directory
- Install the dependencies:
$ npm install - Run
$ npm run dev(read thedevnpm script inpackage.jsonfor more information) - Open the provided URL in the browser.
- Executing of local (js) commands and remote (HTTP) commands
- Remote commands can be issues directly if the server supports CORS, or a proxy frame can be hosted in the server to support non-CORS
- Remote authentication (currently only basic auth is supported)
- Commands syntax is determined by the command author
- Type validation
- Composing of new types
- Commands suggestions
- Press
TABto open the suggestions box - Press
ESCto close the suggestion box - While open,
TABcan be used to switch to selection mode and back to input mode - While in selection mode, press
ENTERto select a suggestion
- Press
- Move in the command history (by pressing the up & down arrows)
- Search for command in history (press
CTRL + Rthen start typing andENTERto select,ESCto close)
There's a new documentation site here: https://fugazi-io.github.io, this is the old version:
- Descriptors basics
- Module Descriptors
- Type Descriptors
- Constraint Descriptors
- Converter Descriptors
- Command Descriptors
Use the issues for any bug, request, question.
Or you can find us in our gitter
We're looking for more help, if you're interested find us in this gmail.com address: terminal.fugazi.io
