libtextworker 0.1.4
Cross-platform, free and open library for Python projects

◆ move()

def libtextworker.get_config.GetConfig.move (   this,
dict[str, dict[str, str]]  list_ 
)
@since 0.1.3

Move configurations found from the file that GetConfig currently uses.
Below is an example:
```
move(
    list_={
        "section1->option1": {
            "newpath": "section_one->option1",
            "file": "unchanged"
        },
        "special->option0": {
            "newpath": "special_thing->option0",
            "file": "~/.config/test.ini"
        }
    }
)
```

"list_" is a dictionary - each key is a dictionary which defines how a setting should be moved.
The key name is your setting (section->option). Under that 'key' is 2 options:
* "newpath" specifies the location of the setting in the target file (section->option)
* "file" specifies the location of the target file we'll move the options to. Ignore it or leave it "unchanged" to tell
    the function that you don't want to move the setting else where than the current file.
* "delete_entire_section" (ignorable, values are 'yes' and 'no') allows you to remove the old section after the move.

Definition at line 254 of file get_config.py.