Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orchestra-v3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alessandro Di Federico
orchestra-v3
Commits
a1b981c6
Commit
a1b981c6
authored
4 years ago
by
Filippo Cremonese
Browse files
Options
Downloads
Patches
Plain Diff
Implemented dumpconfig command
parent
59048a48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
orchestra/cmds/__init__.py
+2
-0
2 additions, 0 deletions
orchestra/cmds/__init__.py
orchestra/cmds/dumpconfig.py
+13
-0
13 additions, 0 deletions
orchestra/cmds/dumpconfig.py
with
15 additions
and
0 deletions
orchestra/cmds/__init__.py
+
2
−
0
View file @
a1b981c6
...
...
@@ -4,6 +4,7 @@ from . import clean
from
.
import
clone
from
.
import
components
from
.
import
configure
from
.
import
dumpconfig
from
.
import
environment
from
.
import
graph
from
.
import
install
...
...
@@ -26,6 +27,7 @@ def install_subcommands(argparser):
dest
=
"
command_name
"
,
parser_class
=
CustomArgumentParser
)
components
.
install_subcommand
(
subparsers
)
dumpconfig
.
install_subcommand
(
subparsers
)
environment
.
install_subcommand
(
subparsers
)
clone
.
install_subcommand
(
subparsers
)
update
.
install_subcommand
(
subparsers
)
...
...
This diff is collapsed.
Click to expand it.
orchestra/cmds/dumpconfig.py
0 → 100644
+
13
−
0
View file @
a1b981c6
from
loguru
import
logger
from
..model.configuration
import
Configuration
from
..util
import
parse_component_name
,
is_installed
from
..actions.install
import
uninstall
def
install_subcommand
(
sub_argparser
):
cmd_parser
=
sub_argparser
.
add_parser
(
"
dumpconfig
"
,
handler
=
handle_dumpconfig
,
help
=
"
Dump yaml configuration
"
)
def
handle_dumpconfig
(
args
,
config
:
Configuration
):
print
(
config
.
generated_yaml
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment