Thank you for checking out this repo!
This is a command line interface designed to help speed up developers workflow
You are able to google search, ask questions to chatgpt and query the blockchain and smart contracts
-------------------------------------
GOOGLE SEARCH COMMANDS
-------------------------------------
-search query used for api search
-site filter results from this site
-sort sort results in ascending or descending order using a or d
-exclude exclude any results that has this phrase or word
-help pull up help menu
-------------------------------------
AI COMMANDS
-------------------------------------
-ai triggers the ai call -requires content flag next
-content question to ask the ai
-------------------------------------
BLOCKCHAIN COMMANDS
-------------------------------------
-blockchain triggers the blockchain call -required flag
-address target address to query for
-chain target chain to query on
-contract target contract to query
-erc20 flag to query ERC20 tokens
-erc721 flag to query ERC721 tokens
-token flag for nft token id
-------------------------------------
HTTP REQUEST COMMANDS
--------------------------------------------------------------------------
-http flag to trigger http request\n
-url url to make request to\n
-api api key for request\n
-method method for http request\n
--------------------------------------------------------------------------
OTHER COMMANDS
-------------------------------------
-help prints the help menu
-description prints the description
-v prints the current version
-------------------------------------
Calling AI -stream response
godev -ai -content "how to spell cake in italian?" -stream
Google Search
godev -search "how to write an essay"
Blockchain Query
godev -blockchain -chain polygon -address 0x7F6C7eb6e7Ae8491212bd3E11498F2A6c5c9979B -erc20 -contract 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619
http request
godev -http -url https://catfact.ninja/fact -method get
Step 1: update the .init.example.go file with the correct api keys and remove .example from the name (will compile and add env variables at build time)
Step 2: run command - go build ./cmd/godev
Step 3: move binary into bin folder (if it is not in there already) - sudo mv godev /usr/local/bin/
Step 4: access commands using godev in command line
Step 5: call godev -search "star wars" should return correct results
I will be working on keeping this updated and adding new functionality to help assist in the development process
I will also be adding and updating the available blockchains to query
If you have any ideas or improvements, send them over!
Thanks for using and checking it out!