init_config
CLI command to initialize somesy configuration file.
write_somesy_file ¶
write_somesy_file(
metadata: ProjectMetadata,
path: Path = Path("somesy.toml"),
*,
config: SomesyConfig | None = None,
overwrite: bool = False
) -> None
Write project metadata to a standalone somesy.toml file.
Source code in src/somesy/commands/init_config.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
init_config ¶
init_config(input_path: Path, options: dict) -> None
Initialize somesy configuration file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_path
|
Path
|
Path to somesy file (will be created/overwritten). |
required |
options
|
dict
|
CLI options. |
required |
Source code in src/somesy/commands/init_config.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |