File tree 5 files changed +5
-53
lines changed
5 files changed +5
-53
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ _crystal()
14
14
local cur=" ${COMP_WORDS[COMP_CWORD]} "
15
15
local prev=" ${COMP_WORDS[COMP_CWORD-1]} "
16
16
17
- commands=" init build deps docs eval play run spec tool help version --help --version"
17
+ commands=" init build docs eval play run spec tool help version --help --version"
18
18
19
19
case " ${cmd} " in
20
20
init)
@@ -32,19 +32,6 @@ _crystal()
32
32
COMPREPLY=($( _crystal_compgen_files $cur ) )
33
33
fi
34
34
;;
35
- deps)
36
- if [[ ${cur} == -* ]] ; then
37
- local opts=" --no-color --version --production"
38
- COMPREPLY=( $( compgen -W " ${opts} " -- ${cur} ) )
39
- else
40
- if [[ " ${prev} " == " deps" ]] ; then
41
- local subcommands=" check install list update"
42
- COMPREPLY=( $( compgen -W " ${subcommands} " -- ${cur} ) )
43
- else
44
- COMPREPLY=($( _crystal_compgen_files $cur ) )
45
- fi
46
- fi
47
- ;;
48
35
run)
49
36
if [[ ${cur} == -* ]] ; then
50
37
local opts=" --debug --define --emit --format --help --ll --link-flags --mcpu --no-color --no-codegen --prelude --release --stats --single-module --threads --verbose"
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ _crystal_commands() {
7
7
commands=(
8
8
" init:generate new crystal project"
9
9
" build:build an executable"
10
- " deps:install project dependencies"
11
10
" docs:generate documentation"
12
11
" env:print Crystal environment information"
13
12
" eval:eval code from args or standard input"
@@ -100,18 +99,6 @@ _crystal-build() {
100
99
&& ret=0
101
100
}
102
101
103
- _crystal-deps () {
104
- _arguments \
105
- ' 1:type:(build check init install list prune update)' \
106
- $help_args \
107
- $no_color_args \
108
- ' (--version)--version[version]' \
109
- ' (--production)--production[production mode]' \
110
- ' (-v --verbose)' {-v,--verbose}' [verbose mode]' \
111
- ' (-q --quiet)' {-q,--quiet}' [quiet mode]' \
112
- && ret=0
113
- }
114
-
115
102
_crystal-env () {
116
103
_arguments \
117
104
' (--help)--help[prints help]' \
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ The optimizations are not turned on by default because the compile times are muc
56
56
.Bl -tag -width " 12345678" -compact
57
57
.Pp
58
58
.Sh OPTIONS
59
- The crystal command accepts the following options
59
+ The crystal command accepts the following options
60
60
61
61
.Bl -tag -width " 12345678" -compact
62
62
.Pp
63
- .It
63
+ .It
64
64
.Cm init
65
65
TYPE
66
66
NAME
@@ -141,13 +141,6 @@ Display the commands executed by the system.
141
141
Source file name to be read from STDIN.
142
142
.El
143
143
144
- .Pp
145
- .It
146
- .Cm deps
147
- .Op options
148
- .Ar <command>
149
- .Pp
150
- Alias for shards, the dependency manager for Crystal language.
151
144
.Pp
152
145
.It
153
146
.Cm docs
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ class Crystal::Command
18
18
Command:
19
19
init generate a new project
20
20
build build an executable
21
- deps install project dependencies
22
21
docs generate documentation
23
22
env print Crystal environment information
24
23
eval eval code from args or standard input
@@ -72,8 +71,8 @@ class Crystal::Command
72
71
options.shift
73
72
playground
74
73
when " deps" .starts_with?(command)
75
- options.shift
76
- deps
74
+ STDERR .puts " Please use 'shards': 'crystal deps' has been removed "
75
+ exit 1
77
76
when " docs" .starts_with?(command)
78
77
options.shift
79
78
docs
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments