structkit 3.2.0__tar.gz → 3.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {structkit-3.2.0/structkit.egg-info → structkit-3.2.1}/PKG-INFO +1 -1
- {structkit-3.2.0 → structkit-3.2.1}/pyproject.toml +1 -1
- {structkit-3.2.0 → structkit-3.2.1}/structkit/file_item.py +2 -0
- {structkit-3.2.0 → structkit-3.2.1/structkit.egg-info}/PKG-INFO +1 -1
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_file_item.py +29 -0
- {structkit-3.2.0 → structkit-3.2.1}/LICENSE +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/MANIFEST.in +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/README.md +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/setup.cfg +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/setup.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/__init__.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/__init__.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/completion.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/explain.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/generate.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/generate_schema.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/graph.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/import.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/info.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/init.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/lint.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/list.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/mcp.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/search.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/sources.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/validate.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/commands/vars.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/completers.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/content_fetcher.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/README.md +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/ansible-playbook.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/chef-cookbook.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/ci-cd-pipelines.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/cloudformation-files.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/chglog.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/codeowners.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/devcontainer.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/editor-config.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/eslint.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/jshint.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/kubectl.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/configs/prettier.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/docker-files.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/documentation-template.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/git-hooks.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/chatmodes/plan.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/instructions/generic.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/prompts/generic.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/prompts/react-form.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/prompts/security-api.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/prompts/struct.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/templates.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/codeql.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/execute-tf-workflow.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/labeler.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/pre-commit.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/release-drafter.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/run-struct.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/stale.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/helm-chart.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/kubernetes-manifests.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/custom-structures.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/generic.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/go.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/java.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/n8n.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/nodejs.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/python.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/ruby.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/project/rust.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/prompts/run-struct-trigger.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/aws-accounts.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/environments.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/generic.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/github-organization.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/init.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/modules/generic.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/vagrant-files.yaml +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/filters.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/input_store.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/logging_config.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/main.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/mcp_server.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/model_wrapper.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/sources.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/struct_refs.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/template_renderer.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit/utils.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit.egg-info/SOURCES.txt +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit.egg-info/dependency_links.txt +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit.egg-info/entry_points.txt +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit.egg-info/requires.txt +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/structkit.egg-info/top_level.txt +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_commands.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_commands_more.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_completers.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_completion_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_content_fetcher_more.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_env_var_cli_args.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_env_var_structures_path.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_explain_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_file_item_strategies.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_filters.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_filters_more.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_graph_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_hooks.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_init_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_input_store.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_mcp_integration.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_messages_and_summary.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_model_wrapper.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_search_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_sources_command.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_template_helpers.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_template_renderer.py +0 -0
- {structkit-3.2.0 → structkit-3.2.1}/tests/test_utils_more.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "structkit"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.1"
|
|
8
8
|
description = "YAML-first project scaffolding tool with remote content fetching, AI/MCP integration, and DevOps automation"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -56,3 +56,32 @@ def test_fetch_content_renders_template(monkeypatch):
|
|
|
56
56
|
assert file_item.content == "Hello, World!"
|
|
57
57
|
assert rendered["content"] == "Hello, {{@ name @}}!"
|
|
58
58
|
assert rendered["vars"]["name"] == "World"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def test_fetch_content_with_config_variables_list(monkeypatch, tmp_path):
|
|
62
|
+
properties = {
|
|
63
|
+
"name": ".gitignore",
|
|
64
|
+
"file": "github://github/gitignore/main/Python.gitignore",
|
|
65
|
+
"config_variables": [
|
|
66
|
+
{
|
|
67
|
+
"project_name": {
|
|
68
|
+
"description": "Name of your project",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"default": "MyProject",
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"input_store": str(tmp_path / "input.json"),
|
|
75
|
+
"non_interactive": True,
|
|
76
|
+
}
|
|
77
|
+
file_item = FileItem(properties)
|
|
78
|
+
|
|
79
|
+
monkeypatch.setattr(
|
|
80
|
+
file_item.content_fetcher,
|
|
81
|
+
"fetch_content",
|
|
82
|
+
lambda location: "# Python gitignore\n*.pyc\n",
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
file_item.fetch_content()
|
|
86
|
+
|
|
87
|
+
assert file_item.content == "# Python gitignore\n*.pyc"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/execute-tf-workflow.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/github/workflows/release-drafter.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structkit-3.2.0 → structkit-3.2.1}/structkit/contribs/terraform/apps/github-organization.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|