Skip to content

Commit 730b10d

Browse files
authored
Updated task (#60)
* fix: theme toggler Fixed definitvely theme toggler * docs: updated task updated task, adding reference for ops devel, ops env, ops ide
1 parent 5f5fcdd commit 730b10d

11 files changed

Lines changed: 192 additions & 9 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Devel
3+
description: OpenServerless Development Utilities.
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
devel user
11+
devel apihost
12+
devel detect
13+
devel ferretdb
14+
devel minio
15+
devel psql
16+
devel redis
17+
```
18+
19+
## Commands
20+
21+
```
22+
devel user login in openserverless
23+
devel apihost show apihost for current context
24+
devel detect detect if web and packages directory are in place for the current directory
25+
devel ferretdb ferretdb utilities
26+
devel minio minio utilities
27+
devel psql postgresql utilities
28+
devel redis redis utilities
29+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Ferretdb
3+
description: OpenServerless Ferret Db Development Utilities.
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
ferretdb find <collection> [--format=table|json]
11+
ferretdb submit <collection> <jsonfile>
12+
ferretdb delete <collection>
13+
ferretdb command [<jsonfile>] [--format=table|json]
14+
```
15+
16+
## Commands
17+
18+
```
19+
ferretdb find search all elements in FerretDb/MongoDb collection
20+
ferretdb submit submit <file> to a FerretDb/MongoDb collection
21+
ferretdb delete empty the FerretDb/MongoDb collection
22+
ferretdb command send a raw command from json file passed on stdin. See https://www.mongodb.com/docs/manual/reference/method/db.runCommand/#mongodb-method-db.runCommand
23+
```
24+
25+
## Options
26+
27+
```
28+
--format Output data as table or json. default is json
29+
```
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Minio
3+
description: OpenServerless Minio/S3 Development Utilities.
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
minio ls [--format=table|json]
11+
minio lsb <bucket> [--format=table|raw|json]
12+
minio rm <bucket> <file>
13+
minio mv <bucket> <file> <dest_bucket> <dest_file>
14+
minio cp <bucket> <file> <dest_bucket> <dest_file>
15+
minio put <localfile> <bucket> <file>
16+
minio get <bucket> <file>
17+
minio clean <bucket> [<regexp>] [--dryrun]
18+
```
19+
20+
## Commands
21+
22+
```
23+
ls retrieve the list of all the user buckets
24+
lsb retrieve the content of the specified bucket (recursively)
25+
rm remove the given file from the specified bucket
26+
mv move a file from a bucket to another
27+
cp copy a file from a bucket to another
28+
put upload a localfile into the bucket/file
29+
get download a bucket file locally
30+
clean removes matching files (default pattern is .*) from the specified bucket (recursively)
31+
```
32+
33+
## Options
34+
35+
```
36+
--format Output data as table or as json. default is json
37+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Psql
3+
description: OpenServerless PostrgreSQL Utilities.
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
psql describe <table> [--format=json|table]
11+
psql sql [<file>] [--format=json|table]
12+
```
13+
14+
## Commands
15+
16+
```
17+
describe perfoms a query to describe the given table if it exists in the user PostgresSQL database
18+
sql submits a SQL snippet (like SELECT *, CREATE TABLE etc) from stdin or as a file and print-out the corresponding results
19+
```
20+
21+
## Options
22+
23+
```
24+
--format Output data as table or as json. default is json
25+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Redis
3+
description: OpenServerless Redis Development Utilities.
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
redis prefix
11+
redis command <command>
12+
```
13+
14+
## Commands
15+
16+
```
17+
prefix print the redis prefix to use when submitting REDIS command to persist/retrieves value from user REDIS reserved partition
18+
command execute a redis command (@see https://redis.io/commands/), eg 'SET prefix:key value' or 'GET prefix:key value'. Key names should always start with the user assigned prefix (@see ops devel redis prefix)
19+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Env
3+
description: OpenServerless Env Utilities
4+
---
5+
6+
## Synopsis
7+
8+
```text
9+
Usage:
10+
env add <args>...
11+
env remove <args>...
12+
env list [--format=table|raw|json]
13+
```
14+
15+
## Commands
16+
17+
```
18+
- add add or change one or multiple env to user metadata. ops env add VARA=valuea VARB=valueb
19+
- remove remove one or multiple env from user metadata. ops env remove VARA VARB
20+
- list list envs from user metadata
21+
```
22+
23+
## Options
24+
25+
```
26+
--format Output data as table, as raw env or as json. default is table
27+
```

content/en/docs/reference/tasks/ide/_index.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Ide
3-
description: OpenServerless Development Utilities.
3+
description: OpenServerless Ide Development Utilities.
44
---
55

66
## Synopsis
77

88
```text
99
Usage:
1010
ide login [<username>] [<apihost>]
11-
ide devel [--dry-run]
11+
ide devel [--fast] [--dry-run]
1212
ide deploy [<action>] [--dry-run]
1313
ide undeploy [<action>] [--dry-run]
1414
ide clean
@@ -37,3 +37,10 @@ Usage:
3737
ide python python subcommands
3838
ide nodejs nodejs subcommands
3939
```
40+
41+
## Options
42+
43+
```
44+
--fast Skip the initial deployment step and go in incremental update mode
45+
--dry-run Simulates the execution without making any actual changes
46+
```

content/en/docs/reference/tasks/setup/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Manage installation
77

88
```text
99
Usage:
10-
setup devcluster [--uninstall|--status]
10+
setup devcluster [--uninstall|--status|--skip-check-ports]
1111
setup cluster [<context>] [--uninstall|--status]
1212
setup server <server> [<user>] [--uninstall|--status]
1313
setup status
@@ -33,6 +33,7 @@ Usage:
3333
```
3434
--uninstall execute an uninstall instead of an installation
3535
--status show the status instead of an installation
36+
--skip-check-ports ignore the check of already used ports
3637
```
3738

3839
## Subtasks

content/en/docs/reference/tasks/util/_index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Usage:
1818
util kubeconfig
1919
util config <configjson> [--override] [--showhelp]
2020
util upload <folder> [--batchsize=<batchsize>] [--verbose] [--clean]
21+
util add-secret <args>...
22+
util remove-secret <args>...
23+
util list-secrets
2124
```
2225

2326
## Commands
@@ -34,6 +37,9 @@ Usage:
3437
- kubeconfig export OVERWRITING current kubeconfig to ~/.kube/config
3538
- config update configuration file interactively
3639
- upload uploads a folder to the web bucket in OpenServerless.
40+
- add-secret add one or multiple secrets to user metadata
41+
- remove-secret remove one or multiple secrets to user metadata
42+
- list-secrets list secrets from user metadata
3743
```
3844

3945
## Options

layouts/partials/head.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
} else if (currentTheme === 'light') {
99
document.documentElement.classList.remove('dark-mode');
1010
}
11-
const isDarkMode = document.body.classList.contains('dark-mode');
11+
const isDarkMode = document.documentElement.classList.contains('dark-mode');
1212

1313
const themeIcon = document.getElementById('theme-icon');
14-
themeIcon.classList.toggle('fa-sun', !isDarkMode);
15-
themeIcon.classList.toggle('fa-moon', isDarkMode);
14+
if (themeIcon) {
15+
themeIcon.classList && themeIcon.classList.toggle('fa-sun', !isDarkMode);
16+
themeIcon.classList && themeIcon.classList.toggle('fa-moon', isDarkMode);
17+
}
1618
})();
1719
</script>
1820
<meta charset="utf-8">

0 commit comments

Comments
 (0)