Home

Awesome

<h1 align="center"> vin </h1> <h3 align="center"> A Simple Command Line Interface for V </h3>

Installation

v install --git https://github.com/DeoDorqnt387/vin

Example Usage

import vin { display_question, Question }

fn main() {
    questions := [
        Question{
            type: "list",
            prompt: "What is your favorite programming lang?",
            choices: ["VLang", "GoLang", "Ruby", "Rust", "Python"]
        },
        Question{
            type: "input",
            prompt: "Which game do you like the most?",
        },
        Question{
            type: "confirm",
            prompt: "Confirm?",
        },
        Question{
            type: "password",
            prompt: "Your password!",
        },
    ]
    
    for q in questions {
        answer := display_question(q) or { panic(err) return }
        println("You selected ${answer}")
    }
}