Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dd8cd5e
Intial import with basic text replacement
sbernauer Jun 10, 2024
3540768
test: Improve env var tests
sbernauer Jun 11, 2024
3486e05
chore: Rename config-filler -> config-utils
sbernauer Jun 11, 2024
309c2f8
feat: Add escaping for properties files
sbernauer Jun 11, 2024
c181083
feat: Escape XML
sbernauer Jun 11, 2024
956bd58
chore: Improve error message
sbernauer Jun 11, 2024
c6d6311
test: Test reading from file
sbernauer Jun 11, 2024
849f661
docs: Add README
sbernauer Jun 11, 2024
74098d5
docs: typo
sbernauer Jun 11, 2024
5eba7ef
docs: Improve wording
sbernauer Jun 11, 2024
9b75935
chore: typo
sbernauer Jun 11, 2024
e65d2e4
chore: Improve .gitignore
sbernauer Jun 11, 2024
c8f7d5f
chore: Add Apache-2.0 license
sbernauer Jun 11, 2024
6e2328c
chore: Rename templating -> template
sbernauer Jun 12, 2024
6469016
docs: Mention Druid configuration interpolation
sbernauer Jun 12, 2024
cf77190
test: Improve test
sbernauer Jun 12, 2024
3dfd62c
chore: add language attributes for github linguist
NickLarsenNZ Jun 13, 2024
1f6fc3e
Move template.rs to src/template/mod.rs
sbernauer Jun 12, 2024
33a595a
Try to gitignore test files
sbernauer Jun 12, 2024
fa32870
Remove test that only works on my machine :)
sbernauer Jun 12, 2024
11dbdb9
Move TemplateCommand struct into template mod
sbernauer Jun 13, 2024
34ec605
feat: Support escaped command invocations
sbernauer Jun 25, 2024
957b92a
Release 0.2.0
sbernauer Jun 25, 2024
50d28c1
Bump Rust to 1.93.0 and dependencies
sbernauer Mar 5, 2026
65baad5
chore: Dependecy bumps
sbernauer May 21, 2026
12fc038
chore: Release 0.4.0
sbernauer May 21, 2026
5a4f600
chore: Bump dependencies
Techassi Jun 30, 2026
abae566
chore: Release 0.5.0
Techassi Jun 30, 2026
13c94dd
chore: Finalize import of config-utils
Techassi Aug 26, 2026
1bcf98b
re-trigger CI
Techassi Aug 27, 2026
cb6086c
chore(config-utils): Fix prek reportings
Techassi Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 38 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ serde_yaml = "0.9.34" # This is the last available version, see https://github.c
# digest 0.11 and signature 3.0, which rsa 0.9 does not support.
sha2 = { version = "0.10.9", features = ["oid"] }
signature = "2.2.0"
similar-asserts = "2.0.0"
snafu = "0.9.2"
stackable-operator-derive = { path = "stackable-operator-derive" }
strum = { version = "0.28.0", features = ["derive"] }
syn = "3.0.3"
sysinfo = "0.39.6"
tempfile = "3.27.0"
time = { version = "0.3.55" }
tokio = { version = "1.53.1", features = ["macros", "rt-multi-thread", "fs"] }
# We use ring instead of aws-lc-rs, as this currently fails to build in "make run-dev"
Expand Down
4 changes: 4 additions & 0 deletions crates/config-utils/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests/resources/**/*.properties.expected linguist-language=properties
tests/resources/**/*.properties.in linguist-language=properties
tests/resources/**/*.xml.expected linguist-language=xml
tests/resources/**/*.xml.in linguist-language=xml
8 changes: 8 additions & 0 deletions crates/config-utils/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/target

# The following files are mentioned as an example in the README, so let's exclude them
example.xml
example-password

tests/resources/properties/*.properties
tests/resources/xml/*.xml
23 changes: 23 additions & 0 deletions crates/config-utils/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# We ideally want something like: https://github.com/j178/prek/issues/1869
---
default_language_version:
node: system

repos:
- repo: local
hooks:
- id: cargo-test-no-default-features
name: cargo-test-no-default-features
language: system
entry: cargo test --no-default-features --package config-utils
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml

- id: cargo-test-all-features
name: cargo-test-no-default-features
language: system
entry: cargo test --all-features --package config-utils
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml
34 changes: 34 additions & 0 deletions crates/config-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.5.0] - 2026-06-30

### Changed

- Bump dependencies ([#15]).

[#15]: https://github.com/stackabletech/config-utils/pull/15

## [0.4.0] - 2026-05-21

### Changed

- Bump `clap` to 4.6 and Rust to 1.95.0 ([#13]).
- Replace `lazy_static` with `std::sync::LazyLock` ([#13]).

[#13]: https://github.com/stackabletech/config-utils/pull/13

## [0.2.0] - 2024-06-25

### Added

- Support escaped command invocations ([#8]).

[#8]: https://github.com/stackabletech/config-utils/pull/8

## [0.1.0] - 2024-06-14

Initial release
17 changes: 17 additions & 0 deletions crates/config-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "config-utils"
version = "0.5.0"
authors = ["Stackable GmbH <info@stackable.tech>"]
license = "Apache-2.0"
edition = "2024"
repository = "https://github.com/stackabletech/operator-rs"

[dependencies]
# We try hard to have as less dependencies as possible!
clap.workspace = true
snafu.workspace = true

[dev-dependencies]
rstest.workspace = true
similar-asserts.workspace = true
tempfile.workspace = true
Loading