Sha256: 84ff153ed70f79f217ebd7fcf0872015628f9fb323fab95a45b61c6af59ff451

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

#!/bin/bash

set -e

function usage() {
  echo "Usage:"
  echo "$0 [options]"
  echo ""
  echo "  Options:"
  echo "    -u/--update           Update tapioca RBI files"
  echo "    -v/--verify           Verify tapioca RBI files"
  echo "    -h/--help             Display this help message"
  echo ""
  exit 1
}

while [ "$1" != "" ]; do
    case $1 in
    -u | --update)
        echo "Updating Tapioca RBI files ..."
        bin/tapioca gem
        echo "Updating Tapioca DSL files ..."
        bin/tapioca dsl
        echo "Updating Tapioca TODO files ..."
        bin/tapioca todo
        ;;
    -v | --verify)
        echo "Verify gem RBIs are up-to-date ..."
        bin/tapioca gem --verify
        echo "Verify duplicates in shims ..."
        bin/tapioca check-shims
        ;;
    -h | --help)
        usage
        ;;
    *)
        usage
        exit 1
        ;;
    esac
    shift
done

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hephaestus-0.0.2 templates/script/typecheck
hephaestus-0.0.1 templates/script/typecheck