observe

command module
v0.0.0-...-174cc3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

Observe

Concurrent monitoring Program for executables.

Prerequisite

Install golang on your system. Link: https://go.dev/doc/install

Install

go install github.com/biswas08433/observe

Usage

To initialise the folder for observation

observe --init

This will create a file called obsconfig.json. Modify the value as needed.

Then for starting:

observe --run

Example obsconfig.json

Let's say you want to run build and run using two commands:

$ go build .
$ ./test2 < input.txt

Then the buildSystem is "go" and the arguments are "build" and "."

Similarly the executable is "./test2" and the arguments are "<" and "input.txt"

If you want to add other folders inside your working folder for observation, add the path to the "folders" list.

{
    "buildSystem": "go",
    "buildArgs": [
        "build",
        "."
    ],
    "executable": "./test2",
    "args": ["<", "input.txt"],    
    "folders": ["./Public","./Views", "/MoreFolders"]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL