hackoon
Version:
Immunefi Hackoon CLI
47 lines (34 loc) • 893 B
JavaScript
import React from "react";
import { render } from "ink";
import App from "./app.js";
import meow from "meow";
const cli = meow(`
Usage
$ hackoon
Options
--api-key [api key from bugs.immunefi.com]
Examples
$ hackoon --api-key=afb374****
Rating:
You can add +1 or -1 after each response to rate it.
=====Example=====
hi
Hello! How can I assist you today with Immunefi or bug bounty-related questions?
Enter your query: +1
=====Response=====
hi
Hello! How can I assist you today with Immunefi or bug bounty-related questions?
+1
Thanks for your feedback :)
Enter your query:
`, {
importMeta: import.meta,
flags: {
apiKey: {
type: "string",
isRequired: true,
},
},
});
render(React.createElement(App, { apiKey: cli.flags.apiKey }));