v / cmd / tools / check_retry.vsh
13 lines · 11 sloc · 377 bytes · 3523c44f42845ceae841530c94d9816938813513
Raw
1#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp
2
3// This script is used by cmd/tools/vretry_test.v, to check that the `v retry`
4// subcommand works as expected, without relying on external commands like
5// `git`, or on non portable ones like `true`/`false` or `echo`.
6
7fn main() {
8 args := arguments()#[1..]
9 println(args)
10 if args == ['too', 'many', 'arguments'] {
11 exit(1)
12 }
13}
14