Skip to content

v1.0.2 - Initial Release

Latest

Choose a tag to compare

@gerassimos gerassimos released this 08 Nov 20:02
· 1 commit to main since this release

A new Go library for executing OS commands and handling their output, along with several examples and tests to demonstrate its usage. Key changes include the addition of command execution functions, a custom error type, configuration settings, and workflow automation for building and testing the project.

New Features:

  • Command Execution Functions:

    • Added functions to execute commands and handle their output in various ways (cmd.go).
    • Introduced a custom error type CommandError to represent command execution errors (cmd_error.go).
  • Configuration:

    • Added a configuration struct Config to manage settings like command directory and printing options (config.go).

Workflow and Build:

  • GitHub Actions Workflow:

    • Created a GitHub Actions workflow to build and test the Go project (.github/workflows/go.yml).
  • Makefile:

    • Added targets for formatting code, running tests, and running examples (Makefile).

Documentation and Examples:

  • Examples:

    • Added multiple example files demonstrating the usage of the command execution functions (examples/)
  • README:

    • Updated the README file to remove outdated information (README.md).

Testing:

  • Unit Tests:
    • Added unit tests for the command execution functions (cmd_test.go).