Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

doc: fix mount example #3805

Merged
merged 5 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/news/_preparation_next_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ you up to date with the multi-language support provided by Elektra.
- Improved documentation for module keymeta in Elektra Core. _(@lawli3t)_
- Improved documentation for module keytest in Elektra Core. _(@lawli3t)_
- Improved documentation for module keyset in Elektra Core. _(@lawli3t)_
- Fixed example in the "mount-configuration-files" tutorial [#3722](https://github.com/ElektraInitiative/libelektra/issues/3722). _(Philipp Oppel)_

## Tests

Expand Down
4 changes: 2 additions & 2 deletions doc/tutorials/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ So let us have a look at the [type](/src/plugins/type/README.md) and [mathcheck]

```sh
# mount the backend with the plugins ...
kdb mount example.ni user:/example ni type
sudo kdb mount example.ni user:/example ni type

# ... and set a value for the demonstration
kdb set user:/example/enumtest/fruit apple
Expand All @@ -169,11 +169,11 @@ By entering `kdb plugin-info type` in the commandline, we can find out how to us
It turns out that this plugin allows us to define a list of valid values for our keys via the metavalue `check/enum`.

```sh
kdb meta-set user:/example/enumtest/fruit check/type enum
kdb meta-set user:/example/enumtest/fruit check/enum "#2"
kdb meta-set user:/example/enumtest/fruit check/enum/#0 apple
kdb meta-set user:/example/enumtest/fruit check/enum/#1 banana
kdb meta-set user:/example/enumtest/fruit check/enum/#2 grape
kdb meta-set user:/example/enumtest/fruit check/type enum
kdb set user:/example/enumtest/fruit tomato
# RET:5
# this fails because tomato is not in the list of valid values
Expand Down