Skip to content

Add TOML support - #67

Merged
hatchan merged 1 commit into
mainfrom
toml
Jul 11, 2023
Merged

hatchan merged 1 commit into
mainfrom
toml

Conversation

@hatchan

@hatchan hatchan commented Jun 29, 2023 •

Copy link
Copy Markdown
Contributor

This allows a user to create a am.toml file and it will be read by am start. It will contain certain settings that are specific for the application. So things like endpoint and enable gateway can be configured here.

A user could create the following am.toml which follows the standards used in their application:

enable-pushgateway = true

[[endpoint]]
url = "http://localhost:3030/metrics"
job-name = "my_app"

The user then only has to do am start to have everything running.

Comment thread src/bin/am/commands/start.rs Resolved
Comment thread src/bin/am/commands/start.rs Resolved
@hatchan
hatchan force-pushed the toml branch 2 times, most recently from ee977e3 to c6c1bcf Compare July 10, 2023 13:28
@hatchan
hatchan marked this pull request as ready for review July 10, 2023 13:29
@hatchan
hatchan requested a review from a team as a code owner July 10, 2023 13:29
@hatchan hatchan changed the title TOML experiment Add TOML support Jul 10, 2023

@mellowagain mellowagain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine

Comment thread src/bin/am/interactive.rs Resolved
@hatchan
hatchan force-pushed the toml branch 2 times, most recently from 56eddb0 to 16d4ad6 Compare July 11, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants