Functions
create_omoospace(dirname, name=None, description=None, contents_dir=None, subspaces_dir=None, gitfiles=False, reveal_in_explorer=False)
Create an omoospace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dirname |
str
|
The directory name of the omoospace. |
required |
name |
str
|
The name of the omoospace. |
None
|
description |
str
|
The description of the omoospace. |
None
|
contents_dir |
str
|
The name of the contents directory. Defaults to "contents". |
None
|
subspaces_dir |
str
|
The name of the subspaces directory. Defaults to "subspaces". |
None
|
gitfiles |
bool
|
Whether to create .gitattributes and .gitignore files. Defaults to False. |
False
|
reveal_in_explorer |
bool
|
Whether to reveal the created omoospace in file explorer. Defaults to False. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
Omoospace |
Omoospace
|
The created omoospace. |
Source code in src\omoospace\functions.py
extract_objective(path)
Returns the objective.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path |
AnyPath
|
The giving path. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Objective |
Objective
|
Objective. |
Source code in src\omoospace\functions.py
extract_pathname(path)
Returns the pathname of a path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path |
AnyPath
|
The giving path. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ObjectivePath |
str
|
Objective path. |