Skip to content

Instantly share code, notes, and snippets.

function Get-Packages {
param(
[parameter(Mandatory = $true)][string]$packagePath
)
$result = @()
if ([System.IO.File]::Exists($packagePath)) {
@oshvartz
oshvartz / fileWatcherActionExecuter.go
Last active December 5, 2018 20:12
fileWatcherActionExecuter in go
package main
import (
"bytes"
"flag"
"fmt"
"os/exec"
"regexp"
"github.com/hpcloud/tail"