Skip to content
generated from golang-templates/seed

List files from a folder resuming the last file listed

License

Notifications You must be signed in to change notification settings

masch/goplaylist

Repository files navigation

Goplaylist

GitHub Release go.dev go.mod Build Status Go Report Card codecov Github Releases Stats of goplaylist

Command line application to list files from a directory path and resume from the last file used.

Usage

goplaylist list files from a directory path and resume from the last file used. On every execution tracks the last file listened to resume after it on the next execution.

Usage: goplaylist -path=/example_path -extension=.ext_1 -extension=.ext_2 -count=3 -sort_mode=[name|timestamp_creation]

  -path string
        Specify path to load file list
  -extension value
        Specify file filter extension. Multiple extensions are supported by adding several -extension entry
  -count int
        Specify file count to load from path
  -sort_mode string
        Specify sort ascendant mode to list the files: name or timestamp_creation are supported

Install

In order to install:

curl -sSfL https://raw.githubusercontent.com/masch/goplaylist/master/install.sh | sh -s --

Build

  • Terminal: make to get help for make targets.
  • Terminal: make all to execute a full build.

Project template

Project based on Golang template.

Contributing

Simply create an issue or a pull request.