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

Commit

Permalink
Merge pull request #3805 from mpranj/CM_H1
Browse files Browse the repository at this point in the history
doc: fix mount example
  • Loading branch information
mpranj authored Apr 23, 2021
2 parents 5758539 + e92dd80 commit febfec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/news/_preparation_next_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,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

0 comments on commit febfec8

Please sign in to comment.