Skip to content

moabukar/tech-vault-cli

Repository files navigation

Tech-Vault CLI

License PRs Welcome

Tech-Vault CLI

Docker Pulls

Tech-Vault CLI is a command-line interface that fetches random technical interview questions from Tech-Vault. This tool is perfect for those who are looking to prepare for tech interviews and want a quick and easy way to get random questions.

Installation

To install the CLI tool, you can download the latest binary from the releases page or install it via go get:

go get -u github.com/moabukar/tech-vault-cli/cmd/techvault

Install via Brew

brew tap moabukar/techvault

brew install techvault

techvault random

Usage

After installation, you can fetch a random tech interview question by running:

❯ techvault
NAME:
   techvault - Get random interview questions from Tech Vault

USAGE:
   techvault [global options] command [command options] [arguments...]

COMMANDS:
   random   Show a random tech question
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

Building from Source


Clone the Repository:

git clone https://github.com/moabukar/tech-vault-cli.git

cd tech-vault-cli


go install ./cmd/techvault

Using Docker


docker build -t techvault Dockerfile (default for Mac)

docker build Dockerfile.dev -t techvault --build-arg GOOS=linux --build-arg GOARCH=amd64 (for Linux)

**For windows:**

- docker build Dockerfile.dev -t techvault --build-arg GOOS=windows --build-arg GOARCH=amd64

- docker run techvault

**Exec into the container:**

- docker exec -it techvault /bin/sh

Contributing

Feel free to open issues or pull requests to improve this tool. All contributions are welcome!

License

This project is licensed under the Apache License - see the LICENSE file for details.

TODO

  • Fix tests (questions is failing due to input in main function)
  • Add more features (choose questions from other topics)