Swiftpack.co - Package - matejkosiarcik/Stopwatch

Stopwatch

Stopwatch is command line application and library for time tracking.

Requirements

To use:

  • macOS 10.9+

Linux support is in the works.

To compile:

  • Swift 4.0+
  • Xcode 9.0+ (optional)

Installation

Download release

Download precompiled binary file from releases.

Build from source

Clone the repository $ git clone git@github.com:matejkosiarcik/Stopwatch.git or download repository manually as .zip file and unzip it.

Navigate to project root $ cd Stopwatch and run $ swift build -c release. Your resulting binary can be found at $ ./.build/release/swatch.

Usage

Run the binary $ ./swatch. App prints controls at start, e.g (space to pause). Laps are reported in format: (from first start) : (from last recorded lap), example:

If you are experiencing troubles, see help page with $ ./swatch -h or $ ./swatch --help.

Testing

To test the swift part of project, just run $ swift test in project root. To test whole project including swift, shell and other sources, run $ ./Utils/test in project root.

Not all parts of the app are testable, so always make sure the resulting executable runs correctly.

License

This project is licensed under the MIT License, see LICENSE.txt file for full license details.

Github

link
Stars: 0
Help us keep the lights on

Used By

Total: 0

Releases

v0.2.2 - Dec 29, 2017

Added:

  • Possible to exit with 'Q'

Updated:

  • Using termios feature no-ECHO to disable echoing input characters to terminal
  • Simplified codebase

Removed:

  • Supplied library for external use

v0.2.1 - Dec 12, 2017

Updated:

  • dependecies (Result to 3.2.4)

Fixed:

  • compatibility with latest swift compiler (4.0.3)

v0.2.0 - Aug 5, 2017

Added:

  • macOS 10.9+ compatibility (previously 10.10+)
  • basic documentation

Updated:

  • Repository name
  • Legal info

v0.1.0 - Jul 31, 2017

Compatible with macOS 10.10+