Skip to content

hattya/aster

Repository files navigation

Aster

Aster is a command line tool to handle events on file system modifications. It is inspired by Guard.

pkg.go.dev GitHub Actions Appveyor Codecov

Installation

$ go install github.com/hattya/aster/cmd/aster@latest

Usage

$ aster -g

init

$ aster init [<template>...]

aster init creates an Asterfile in the current directory if it does not exist, and add specified template files to it.

Template files are located in:

  • UNIX
    $XDG_CONFIG_HOME/aster/template/<template>

  • macOS
    ~/Library/Application Support/Aster/template/<template>

  • Windows
    %APPDATA%\Aster\template\<template>

Asterfile

Asterfile is evaluated as JavaScript by otto.

var go = require('language/go').go;

aster.watch(/.+\.go$/, function() {
  // test
  if (go.test('-v', '-covermode', 'atomic', '-coverprofile', 'cover.out', './...')) {
    return;
  }
  // coverage report
  go.tool.cover('-func', 'cover.out');
  go.tool.cover('-html', 'cover.out', '-o', 'coverage.html');
  // vet
  if (go.vet('./...')) {
    return;
  }
});

Reference

License

Aster is distributed under the terms of the MIT License.

About

A command line tool to handle events on file system modifications

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published