Skip to content

Commit

Permalink
Merge pull request #8133 from obsidiansystems/improve-internal-api-docs
Browse files Browse the repository at this point in the history
Extend internal API docs, part 2
  • Loading branch information
Ericson2314 authored Apr 1, 2023
2 parents 8ae9d66 + f4ab297 commit ea1cbc3
Show file tree
Hide file tree
Showing 145 changed files with 803 additions and 359 deletions.
10 changes: 10 additions & 0 deletions src/libcmd/command-installable-value.hh
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
#pragma once
///@file

#include "installable-value.hh"
#include "command.hh"

namespace nix {

/**
* An InstallableCommand where the single positional argument must be an
* InstallableValue in particular.
*/
struct InstallableValueCommand : InstallableCommand
{
/**
* Entry point to this command
*/
virtual void run(ref<Store> store, ref<InstallableValue> installable) = 0;

void run(ref<Store> store, ref<Installable> installable) override;
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/command.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "installable-value.hh"
#include "args.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/common-eval-args.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "args.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libcmd/editor-for.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"

Expand Down
3 changes: 3 additions & 0 deletions src/libcmd/installable-attr-path.hh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#pragma once
///@file

#include "globals.hh"
#include "installable-value.hh"
#include "outputs-spec.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/installable-derived-path.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "installables.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libcmd/installable-flake.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "installable-value.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libcmd/installable-value.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "installables.hh"
#include "flake/flake.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/installables.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "util.hh"
#include "path.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/legacy.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <functional>
#include <map>
Expand Down
3 changes: 3 additions & 0 deletions src/libcmd/markdown.hh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#pragma once
///@file

#include "types.hh"

namespace nix {
Expand Down
1 change: 1 addition & 0 deletions src/libcmd/repl.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/attr-path.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/attr-set.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "nixexpr.hh"
#include "symbol-table.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/eval-cache.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "sync.hh"
#include "hash.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/eval-inline.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/eval.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "attr-set.hh"
#include "types.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/flake/flake.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "flakeref.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/flake/flakeref.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "hash.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/flake/lockfile.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "flakeref.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/function-trace.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/get-drvs.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"
#include "path.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/json-to-value.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/nixexpr.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <map>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/primops.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "eval.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/symbol-table.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <list>
#include <map>
Expand Down
3 changes: 3 additions & 0 deletions src/libexpr/tests/libexpr.hh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#pragma once
///@file

#include <gtest/gtest.h>
#include <gmock/gmock.h>

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/tests/value/context.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <rapidcheck/gen/Arbitrary.h>

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/value-to-json.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "nixexpr.hh"
#include "eval.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/value-to-xml.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "nixexpr.hh"
#include "eval.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libexpr/value.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <cassert>

Expand Down
1 change: 1 addition & 0 deletions src/libexpr/value/context.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "util.hh"
#include "comparator.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libfetchers/attrs.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libfetchers/cache.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "fetchers.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libfetchers/fetch-settings.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "config.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libfetchers/fetchers.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "hash.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libfetchers/registry.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "fetchers.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libmain/common-args.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "args.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libmain/loggers.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libmain/progress-bar.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "logging.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libmain/shared.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "util.hh"
#include "args.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/binary-cache-store.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "crypto.hh"
#include "store-api.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build-result.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "realisation.hh"
#include "derived-path.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/derivation-goal.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "parsed-derivations.hh"
#include "lock.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/drv-output-substitution-goal.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "store-api.hh"
#include "goal.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/goal.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "store-api.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/hook-instance.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "logging.hh"
#include "serialise.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/local-derivation-goal.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "derivation-goal.hh"
#include "local-store.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/personality.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <string>

Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/substitution-goal.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "lock.hh"
#include "store-api.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/build/worker.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"
#include "lock.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/builtins.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "derivations.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libstore/builtins/buildenv.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "derivations.hh"
#include "store-api.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/content-address.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include <variant>
#include "hash.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/crypto.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "types.hh"

Expand Down
1 change: 1 addition & 0 deletions src/libstore/daemon.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "serialise.hh"
#include "store-api.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/derivations.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "path.hh"
#include "types.hh"
Expand Down
1 change: 1 addition & 0 deletions src/libstore/derived-path.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
///@file

#include "util.hh"
#include "path.hh"
Expand Down
Loading

0 comments on commit ea1cbc3

Please sign in to comment.