https://github.com/shavit/segments-cli
https://github.com/shavit/segments-cli
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shavit/segments-cli
- Owner: shavit
- Created: 2020-10-30T16:14:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-30T16:24:39.000Z (over 4 years ago)
- Last Synced: 2025-01-23T23:43:52.107Z (4 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Segments
> Create segments from metadata
## Quick start
```
cmd -p lib/silence_1.xml -max 6000 -ms 2000 -split 400
```Write to stdout
```
cmd -p lib/silence_1.xml -max 6000 -ms 2000 -split 400
```Write to a path
```
cmd -p lib/silence_1.xml -max 6000 -ms 2000 -split 400 -o /tmp/segments.json -s
```## Install
Make sure the binary is in your path
```
export PATH=$PATH:$GOPATH/bin
```Download and build, or install the program
```
# build
# go get -u github.com/shavit/segments-cli/cmd
# rename cmd
# go build -o $GOPATH/bin/cmd github.com/shavit/segments-cli/cmd# Install
go install github.com/shavit/segments-cli/cmd
```## Test
```
go test github.com/shavit/segments-cli/...
```## Help
```
cmd -h
```