Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Factored out code is now elegible for formatting.
  • Loading branch information
Ericson2314 committed Jun 25, 2024
1 parent 09530fb commit cc2a434
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/libflake/flake-settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

namespace nix {

FlakeSettings::FlakeSettings()
{
}
FlakeSettings::FlakeSettings() {}

FlakeSettings flakeSettings;

Expand Down
28 changes: 21 additions & 7 deletions src/libflake/flake-settings.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,35 @@ struct FlakeSettings : public Config
{
FlakeSettings();

Setting<bool> useRegistries{this, true, "use-registries",
Setting<bool> useRegistries{
this,
true,
"use-registries",
"Whether to use flake registries to resolve flake references.",
{}, true, Xp::Flakes};

Setting<bool> acceptFlakeConfig{this, false, "accept-flake-config",
{},
true,
Xp::Flakes};

Setting<bool> acceptFlakeConfig{
this,
false,
"accept-flake-config",
"Whether to accept nix configuration from a flake without prompting.",
{}, true, Xp::Flakes};
{},
true,
Xp::Flakes};

Setting<std::string> commitLockFileSummary{
this, "", "commit-lockfile-summary",
this,
"",
"commit-lockfile-summary",
R"(
The commit summary to use when committing changed flake lock files. If
empty, the summary is generated based on the action performed.
)",
{}, true, Xp::Flakes};
{},
true,
Xp::Flakes};
};

// FIXME: don't use a global variable.
Expand Down

0 comments on commit cc2a434

Please sign in to comment.