### ----------------------------------------------------
### -- Configuration
### -- Licenses: Artistic 2.0
### -- Authors: 
### -- File: examples/test1/AnotherPlace.rakumod
### ----------------------------------------------------
use v6.d;
use Test1Config;

sub another-place(:$print = True) is export {
    say get-config if $print;

    # Emits only when `.a` is changed
    config-supply(*.a).tap: { say ".a has changed: ", $_ }

    # Emits only when `.db.host` is changed
    config-supply(*.db.host).tap: { say ".db.host has changed: ", $_ }

    # Emits only when `.db` is changed
    config-supply(*.db).tap: { say ".db has changed: ", $_ }

    single-config-run
}



