Kong / Kong/deck

feat: add 'generate' subcommand to create a config skeleton

Open
#658 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
Go
Stars
503
Forks
137
Avg merge
3d 5h
Merged PRs (30d)
20

Description

Run `deck file generate` to generate a config file skeleton as initially requested [here](https://github.com/Kong/deck/issues/653#issuecomment-1106736676)

## Acceptance criteria:

Generate a sample file that contains the following entities:

- [ ] Service
- [ ] Route (attached to service)
- [ ] Consumer
- [ ] Rate Limiting plugin (attached to service and consumer)

It should generate a configuration with each entity at the top level, using foreign keys for references

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the `deck file` command and its configuration serialization or generation entry points. Determine how a generated skeleton can represent Service, Route, Consumer, and Rate Limiting plugin entities at the top level with foreign-key references. Done means `deck file generate` emits a sample configuration containing all four entities and the specified attachments.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.