tstoy

command module
v0.0.0-...-3b42088 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 1 Imported by: 0

README

The tstoy example app

This folder has the source code for a fictional application, tstoy. It's intended to serve as a functional mockup of a real application a user might want to configure.

It has two configuration options:

  1. Should the application update automatically?
  2. How frequently should the application check for updates?

These values are represented by keys in configuration files. The default configuration is:

{
    "updates": {
        "automatic": false,
        "checkFrequency": 90
    }
}

The application is implemented so that it can merge configuration from:

  1. The default configuration built into the code.
  2. A machine-scope configuration file.
  3. A user-scope configuration file.
  4. Environment variables with the prefix TSTOY_.
  5. Explicit flags passed to the application.

DSC Resources targeting this application should be able to ensure:

  • Whether a configuration file in a specific scope exists.
  • Whether a configuration file defines that the application should automatically update.
  • The frequency of the automatic updates, if they're enabled.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL