aboutsummaryrefslogtreecommitdiffstats
path: root/api.md
diff options
context:
space:
mode:
authorkarissa <krmckelv@gmail.com>2016-05-24 11:44:00 -0700
committerkarissa <krmckelv@gmail.com>2016-05-24 11:44:00 -0700
commit593ec2096e9ce0a290809829ecd44f332c28e842 (patch)
treebdfd4fd7ccfd386218c9bb35e5c280ee6afa7bed /api.md
parent79ade9c827006bc7d4ed023a3c7716a4b82b3f04 (diff)
parentc2f993f1ddcf11a607ddfed4cb01676a16fd6263 (diff)
downloaddat-docs-593ec2096e9ce0a290809829ecd44f332c28e842.tar.gz
dat-docs-593ec2096e9ce0a290809829ecd44f332c28e842.zip
Merge branch 'master' of github.com:datproject/docs
Diffstat (limited to 'api.md')
-rw-r--r--api.md14
1 files changed, 6 insertions, 8 deletions
diff --git a/api.md b/api.md
index 53993a3..3c41cd9 100644
--- a/api.md
+++ b/api.md
@@ -1,7 +1,5 @@
## 1.0 Architecture Design
-![dat-arch.001.jpg](arch.png)
-
* dat: command-line api
* dat-desk: desktop application
@@ -32,6 +30,10 @@ Starts serving dats in the background progress.
* `--foreground`: run the server in the foreground instead.
+#### `dat status`
+
+View a static list of the current dat links that are served.
+
#### `dat stop`
Stops serving dats.
@@ -40,10 +42,6 @@ Stops serving dats.
Remove a link from the list, stops serving it.
-#### `dat ls`
-
-View a static list of the current dat links that are served.
-
#### `dat mon`
Opens up real-time monitoring panel for viewing progress of running dats. Can provide optional parameter `dat mon LINK` to filter the monitor and logs for a given dat link.
@@ -82,9 +80,9 @@ linker.on('progress', function (progress) {
})
```
-#### `dat.join(link, cb)`
+#### `dat.join(link, dir, cb)`
-Join a swarm for the given link. Should be called after `link` or `download`. Throws error if data has not been downloaded or linked.
+Joins the swarm for a given link to a given location. Get progress events from the stream. Progress events are the same as emitted by the `dat` object.
```js
var done = function (err) {