Skip to content

Commit

Permalink
Removed tour command per lgierth request
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
  • Loading branch information
Sherod Taylor committed Aug 6, 2017
1 parent 3b60666 commit 19e32eb
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 693 deletions.
2 changes: 1 addition & 1 deletion assets/init-doc/quick-start
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 0.1 - Quick Start

This is a set of short examples with minimal explanation. It is meant as
a "quick start". Soon, we'll write a longer tour :-)
a "quick start".


Add a file to ipfs:
Expand Down
34 changes: 0 additions & 34 deletions assets/init-doc/tour/0.0-intro

This file was deleted.

1 change: 0 additions & 1 deletion core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ var rootSubcommands = map[string]*cmds.Command{
"stats": StatsCmd,
"swarm": SwarmCmd,
"tar": TarCmd,
"tour": tourCmd,
"file": unixfs.UnixFSCmd,
"update": ExternalBinary(),
"version": VersionCmd,
Expand Down
202 changes: 0 additions & 202 deletions core/commands/tour.go

This file was deleted.

27 changes: 0 additions & 27 deletions core/commands/tour_test.go

This file was deleted.

3 changes: 0 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ a running daemon do not read the config file at runtime.
- [`ReproviderInterval`](#reproviderinterval)
- [`SupernodeRouting`](#supernoderouting)
- [`Swarm`](#swarm)
- [`Tour`](#tour)

## `Addresses`
Contains information about various listener addresses to be used by this node.
Expand Down Expand Up @@ -221,5 +220,3 @@ improvement, as well as a reduction in memory usage.
- `DisableNatPortMap`
Disable NAT discovery.

## `Tour`
Unused.
22 changes: 1 addition & 21 deletions misc/completion/ipfs-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -811,26 +811,6 @@ _ipfs_tar_cat()
fi
}

_ipfs_tour()
{
_ipfs_comp "list next restart --help"
}

_ipfs_tour_list()
{
_ipfs_help_only
}

_ipfs_tour_next()
{
_ipfs_help_only
}

_ipfs_tour_restart()
{
_ipfs_help_only
}

_ipfs_update()
{
if [[ ${word} == -* ]] ; then
Expand Down Expand Up @@ -964,7 +944,7 @@ _ipfs()
1)
local opts="add bitswap block bootstrap cat commands config daemon dag dht \
diag dns file files get id init log ls mount name object pin ping pubsub \
refs repo resolve stats swarm tar tour update version"
refs repo resolve stats swarm tar update version"
COMPREPLY=( $(compgen -W "${opts}" -- ${word}) );;
2)
local command="${COMP_WORDS[1]}"
Expand Down
1 change: 0 additions & 1 deletion repo/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type Config struct {
Discovery Discovery // local node's discovery mechanisms
Ipns Ipns // Ipns settings
Bootstrap []string // local nodes's bootstrap peer addresses
Tour Tour // local node's tour position
Gateway Gateway // local node's gateway server options
SupernodeRouting SupernodeClientConfig // local node's routing servers (if SupernodeRouting enabled)
API API // local node's API settings
Expand Down
7 changes: 0 additions & 7 deletions repo/config/tour.go

This file was deleted.

5 changes: 1 addition & 4 deletions test/3nodetest/bootstrap/config
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@
"AutoUpdate": "minor"
},
"Bootstrap": [
],
"Tour": {
"Last": ""
}
]
}
3 changes: 0 additions & 3 deletions test/3nodetest/client/config
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Tour": {
"Last": ""
},
"Version": {
"AutoUpdate": "minor",
"Check": "error",
Expand Down
3 changes: 0 additions & 3 deletions test/3nodetest/server/config
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Tour": {
"Last": ""
},
"Version": {
"AutoUpdate": "minor",
"Check": "error",
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/t0110-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ test_expect_success "refs IPFS directory file through readonly API succeeds" '
'

test_expect_success "test gateway api is sanitized" '
for cmd in "add" "block/put" "bootstrap" "config" "dht" "diag" "dns" "get" "id" "mount" "name/publish" "object/put" "object/new" "object/patch" "pin" "ping" "refs/local" "repo" "resolve" "stats" "swarm" "tour" "file" "update" "version" "bitswap"; do
for cmd in "add" "block/put" "bootstrap" "config" "dht" "diag" "dns" "get" "id" "mount" "name/publish" "object/put" "object/new" "object/patch" "pin" "ping" "refs/local" "repo" "resolve" "stats" "swarm" "file" "update" "version" "bitswap"; do
test_curl_resp_http_code "http://127.0.0.1:$port/api/v0/$cmd" "HTTP/1.1 404 Not Found"
done
'
Expand Down
Loading

0 comments on commit 19e32eb

Please sign in to comment.