Skip to content

Commit 58a6085

Browse files
committedFeb 16, 2016
Merge pull request #2298 from ipfs/feature/example-name-change
Normalised Example heading, added dollar sign to examples
2 parents 5ebfd71 + af148b3 commit 58a6085

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed
 

‎core/commands/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ repository.`,
4141
much like 'git config'. The configuration values are stored in a config
4242
file inside your IPFS repository.
4343
44-
EXAMPLES:
44+
Examples:
4545
4646
Get the value of the 'datastore.path' key:
4747
48-
ipfs config datastore.path
48+
$ ipfs config datastore.path
4949
5050
Set the value of the 'datastore.path' key:
5151
52-
ipfs config datastore.path ~/.ipfs/datastore
52+
$ ipfs config datastore.path ~/.ipfs/datastore
5353
`,
5454
},
5555

‎core/commands/mount_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You may have to create /ipfs and /ipns before using 'ipfs mount':
4343
> ipfs daemon &
4444
> ipfs mount
4545
46-
EXAMPLE:
46+
Example:
4747
4848
# setup
4949
> mkdir foo

‎core/commands/object/object.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Data should be in the format specified by the --inputenc flag.
305305
306306
Examples:
307307
308-
echo '{ "Data": "abc" }' | ipfs object put
308+
$ echo '{ "Data": "abc" }' | ipfs object put
309309
310310
This creates a node with the data 'abc' and no links. For an object with links,
311311
create a file named 'node.json' with the contents:
@@ -319,9 +319,9 @@ create a file named 'node.json' with the contents:
319319
} ]
320320
}
321321
322-
and then run
322+
And then run:
323323
324-
ipfs object put node.json
324+
$ ipfs object put node.json
325325
`,
326326
},
327327

‎core/commands/object/patch.go

+7-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ var patchAppendDataCmd = &cmds.Command{
4848
ShortDescription: `
4949
Append data to what already exists in the data segment in the given object.
5050
51-
EXAMPLE:
51+
Example:
52+
5253
$ echo "hello" | ipfs object patch $HASH append-data
5354
5455
Note: This does not append data to a file - it modifies the actual raw
@@ -113,7 +114,7 @@ var patchSetDataCmd = &cmds.Command{
113114
ShortDescription: `
114115
Set the data of an ipfs object from stdin or with the contents of a file.
115116
116-
EXAMPLE:
117+
Example:
117118
118119
$ echo "my data" | ipfs object patch $MYHASH set-data
119120
`,
@@ -235,11 +236,11 @@ var patchAddLinkCmd = &cmds.Command{
235236
ShortDescription: `
236237
Add a Merkle-link to the given object and return the hash of the result.
237238
238-
Examples:
239+
Example:
239240
240-
EMPTY_DIR=$(ipfs object new unixfs-dir)
241-
BAR=$(echo "bar" | ipfs add -q)
242-
ipfs object patch $EMPTY_DIR add-link foo $BAR
241+
$ EMPTY_DIR=$(ipfs object new unixfs-dir)
242+
$ BAR=$(echo "bar" | ipfs add -q)
243+
$ ipfs object patch $EMPTY_DIR add-link foo $BAR
243244
244245
This takes an empty directory, and adds a link named 'foo' under it, pointing to
245246
a file containing 'bar', and returns the hash of the new object.

0 commit comments

Comments
 (0)
Please sign in to comment.