docs/src/edit.md

Sun, 17 Dec 2023 14:25:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Dec 2023 14:25:34 +0100
changeset 797
edbb20b1438d
parent 720
2b8a65ed6f4c
permissions
-rw-r--r--

[Makefile] fix missing rules preventing dry-runs

We have to support dry-runs, because many IDEs are using
dry-runs to collect build information.

Some rules have dependencies that expect certain files or
directories to be just present. We added respective build
rules which invoke the test program. This way, the behavior
when running make normally is exactly the same, but dry-runs
are also not failing now.

---
title: 'dav edit'
---

**`dav edit [-pc] [-k <key>] [-V <version>] [-L <lock>] <url>`**

Downloads a resources and opens an editor. If there is no resource at the
specified location, it is attempted to create a fresh resource.
The resource is downloaded to a temporary file and re-uploaded only if you save
any changes to that file.

The default editor `vi` can be changed with the `EDITOR` environment variable.

This command transparently handles decryption and encryption. If you download
and open a plain text file and request content encryption (either by config or
by command line option) the file will be re-uploaded with content encryption.
However, a present file will keep its (plain text) file name in any case.

**`-p`** disable file name encryption and decryption

**`-c`** enable file name and content encryption

**`-k <key>`** use the specified key for encryption. The key must be configured in
  the config.xml file

**`-V <version>`** downloads a specific version of the resource. Available versions can be listed with the *list-versions* command

**`-L <lock>`** use a lock token. See [dav lock][1]

[1]: ./lock.html

mercurial