Skip to content

DeoDorqnt387/vin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 15, 2024
5969ce3 · Dec 15, 2024

History

35 Commits
Oct 26, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Dec 15, 2024
Oct 25, 2024

Repository files navigation

vin

A Simple Command Line Interface for V

demo.webm

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}")
    }
}

About

A Command Line Interface for V

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages