The Amrita PYQ CLI Tool is a command-line interface application that simplifies accessing previous year question papers (PYQs) by directly fetching and displaying them in your default browser.
Ensure the following requirements are met before using the application:
- Network: You must be connected to the Amrita WiFi or use a VPN to access the network.
- Development Environment:
- Golang must be installed on your system.
- Ensure a working Go Compiler is set up.
Before using the tool, ensure that you are connected to Amrita WiFi or using a VPN to access the network. This is mandatory for fetching the previous year question papers.
git clone https://github.com/CSE-25/amrita_pyq
- Open the
main.go
file in your preferred code editor (eg:VS Code). - Execute the application:
go run main.go
- A menu will appear with options to choose from.
- Use the menu to choose an option.
- The tool will process your request and fetch the desired question paper.
- The question paper will automatically open as a PDF in your default web browser.
The File opened in PDF format in your default browser(in this case, Google Chrome)
- After the PDF is displayed, you will have the option to:
- Continue: Press
1
to go back to the main menu. - Exit: Press
0
to close the application.
- Continue: Press
-
Download Golang Visit the official Golang Downloads Page and select the installer appropriate for your operating system:
- Windows:
.msi
installer - macOS:
.pkg
installer - Linux:
.tar.gz
archive
- Windows:
-
Install Golang
- Windows/macOS:
Run the installer and follow the on-screen instructions. This will automatically configure Golang and set environment variables. - Linux:
Extract the archive and move the files to/usr/local
:Add Golang to yoursudo tar -C /usr/local -xzf go<version>.linux-amd64.tar.gz
PATH
by appending this line to your shell's configuration file (~/.bashrc
,~/.zshrc
, etc.):Save the changes and reload your shell:export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc
- Windows/macOS:
-
Verify Installation Open a terminal and run:
go version
If Golang is installed correctly, the installed version will be displayed.
Note
If you encounter any issues related toGOPATH
, please refer to the GOPATH Troubleshooting Guide for detailed instructions.