Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e2dc14e
feat: Add initialization commands and configuration builders for Code…
OliverTrautvetter Oct 30, 2025
ff27bdb
test: Add tests for initialization and configuration builders
OliverTrautvetter Oct 30, 2025
420e13e
chore(docs): Auto-update docs and licenses
OliverTrautvetter Oct 30, 2025
00b490b
ref: simplify install config process
OliverTrautvetter Nov 6, 2025
3919226
ref: simplify install config
OliverTrautvetter Nov 6, 2025
663330f
Merge branch 'main' into interactive_install_config_generation
OliverTrautvetter Nov 6, 2025
d6a8c9e
fix: mocks
OliverTrautvetter Nov 6, 2025
bd14a56
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 6, 2025
dc5369d
fix: merge error
OliverTrautvetter Nov 6, 2025
b3571a4
Merge branch 'interactive_install_config_generation' of https://githu…
OliverTrautvetter Nov 6, 2025
396eed3
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 6, 2025
0b0590c
ref: installer package to use files.RootConfig
OliverTrautvetter Nov 6, 2025
0192f62
ref: streamline configuration collection and management methods
OliverTrautvetter Nov 10, 2025
be31657
Merge branch 'main' into interactive_install_config_generation
OliverTrautvetter Nov 11, 2025
2e33700
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 11, 2025
4657793
ref: InstallConfigManager interface and implementation
OliverTrautvetter Nov 12, 2025
470bbc8
refac: refactor generator
siherrmann Nov 12, 2025
3f6eeed
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 12, 2025
f31da46
ref: install config process
OliverTrautvetter Nov 14, 2025
a5ce202
refac: refactor and clean up install config generator
siherrmann Nov 14, 2025
01cdb7f
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 14, 2025
bca3444
fix: install config errors
OliverTrautvetter Nov 14, 2025
b0b01f0
feat: add more tests
OliverTrautvetter Nov 14, 2025
4d07d25
Merge branch 'main' into interactive_install_config_generation
OliverTrautvetter Nov 14, 2025
cbe759b
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 14, 2025
a4d40f5
fix: handle errors
OliverTrautvetter Nov 14, 2025
deccc58
Merge branch 'interactive_install_config_generation' of https://githu…
OliverTrautvetter Nov 14, 2025
3a594e8
fix: interactive configuration collection with default values and imp…
OliverTrautvetter Nov 17, 2025
d884e31
Merge branch 'main' into interactive_install_config_generation
OliverTrautvetter Nov 17, 2025
6d9f419
chore(docs): Auto-update docs and licenses
OliverTrautvetter Nov 17, 2025
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
25 changes: 25 additions & 0 deletions cli/cmd/init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright (c) Codesphere Inc.
// SPDX-License-Identifier: Apache-2.0

package cmd

import (
"github.com/codesphere-cloud/cs-go/pkg/io"
"github.com/spf13/cobra"
)

type InitCmd struct {
cmd *cobra.Command
}

func AddInitCmd(rootCmd *cobra.Command, opts *GlobalOptions) {
init := InitCmd{
cmd: &cobra.Command{
Use: "init",
Short: "Initialize configuration files",
Long: io.Long(`Initialize configuration files for Codesphere installation and other components.`),
},
}
rootCmd.AddCommand(init.cmd)
AddInitInstallConfigCmd(init.cmd, opts)
}
Loading