Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 10 additions & 10 deletions src/buildstream/_frontend/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def build(
@click.option(
"--deps",
"-d",
default=_PipelineSelection.ALL,
default=str(_PipelineSelection.ALL),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -814,7 +814,7 @@ def source():
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -887,7 +887,7 @@ def source_fetch(app, elements, deps, except_, source_remotes, ignore_project_so
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -960,7 +960,7 @@ def source_push(app, elements, deps, except_, source_remotes, ignore_project_sou
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1015,7 +1015,7 @@ def source_track(app, elements, deps, except_, cross_junctions):
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1296,7 +1296,7 @@ def artifact():
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1339,7 +1339,7 @@ def artifact_show(app, deps, artifact_remotes, ignore_project_artifact_remotes,
@click.option(
"--deps",
"-d",
default=_PipelineSelection.RUN,
default=str(_PipelineSelection.RUN),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1464,7 +1464,7 @@ def artifact_checkout(
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1533,7 +1533,7 @@ def artifact_pull(app, deps, artifact_remotes, ignore_project_artifact_remotes,
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down Expand Up @@ -1673,7 +1673,7 @@ def artifact_list_contents(app, artifacts, long_):
@click.option(
"--deps",
"-d",
default=_PipelineSelection.NONE,
default=str(_PipelineSelection.NONE),
show_default=True,
type=FastEnumType(
_PipelineSelection,
Expand Down
8 changes: 4 additions & 4 deletions src/buildstream/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ def __hash__(self):
return hash(id(self))

def __str__(self):
return "{}.{}".format(self.__class__.__name__, self.name)
return str(self.value)

def __reduce__(self):
return self.__class__, (self.value,)

def __repr__(self):
return "<{}.{}: {}>".format(self.__class__.__name__, self.name, self.value)


class CoreWarnings:
"""CoreWarnings()
Expand Down Expand Up @@ -307,9 +310,6 @@ class _PipelineSelection(FastEnum):
# including the targets
RUN = "run"

def __str__(self):
return str(self.value)


# _ProjectInformation()
#
Expand Down
Loading