https://github.com/sdorra/welfare
A library for embeddable declarative tasks
https://github.com/sdorra/welfare
configuration-management declarative golang library
Last synced: over 1 year ago
JSON representation
A library for embeddable declarative tasks
- Host: GitHub
- URL: https://github.com/sdorra/welfare
- Owner: sdorra
- License: mit
- Created: 2018-01-13T15:37:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-14T20:11:34.000Z (over 8 years ago)
- Last Synced: 2025-01-13T01:37:20.655Z (over 1 year ago)
- Topics: configuration-management, declarative, golang, library
- Language: Go
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welfare
[](https://github.com/sdorra/welfare/blob/master/LICENSE)

Welfare is a library for the execution of declarative tasks.
It is very much inspired by [Ansible](https://www.ansible.com/), but Welfare is designed to be used as embedded component in other applications.
## Usage
```go
copy := files.NewCopyModule("files/issue", "/etc/issue")
copy.FileMode = 0644
changed, _ := copy.Run()
if changed {
fmt.Println("updated /etc/issue")
}
```