blob: 72f9dd8066ee7fd9f7175ef106101d054807f5a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* script.hh - Implementation of the Script class
* libhscript, the HorizonScript library for
* Project Horizon
*
* Copyright (c) 2019 Adélie Linux and contributors. All rights reserved.
* This code is licensed under the AGPL 3.0 license, as noted in the
* LICENSE-code file in the root directory of this repository.
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "script.hh"
#include "disk.hh"
namespace Horizon {
struct Script::ScriptPrivate {
/*! Determines whether or not to enable networking. */
bool network;
/*! The target system's hostname. */
std::string hostname;
/*! The packages to install to the target system. */
std::vector<std::string> packages;
/*! The root shadow line. */
std::string rootpw;
/*! Target system's mountpoints. */
std::vector< std::unique_ptr<Horizon::Keys::Mount> > mounts;
};
Script::Script() {
}
bool Script::load(std::string path) {
}
bool Script::load(std::istream &stream) {
}
bool Script::parse() {
}
bool Script::validate() {
}
}
|