1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: hask-replace
author: Vanessa McHale <vanessa.mchale@reconfigure.io>
about: Rename modules and functions across Haskell projects
subcommands:
#- function:
# visible_alias: "f"
# about: Move a function between modules
# args:
# - function:
# value_name: FUNCTION
# index: 1
# required: true
# help: Name of function you wish to move
# - project:
# value_name: PROJECT
# index: 2
# help: "Directory or '.cabal' file for the project"
# - prompt:
# long: prompt
# short: p
# help: Prompt before overwriting file
# - stash:
# short: s
# long: stash
# help: Commit using git before making any changes
# - old:
# long: old
# short: o
# required: true
# value_name: OLD_MODULE
# help: Module in which the function is located
# - new:
# long: new
# short: n
# required: true
# value_name: NEW_MODULE
# help: Module we wish to move the function to
- module:
visible_alias: "m"
about: Replace a module across a project
args:
- project:
value_name: PROJECT
index: 1
required: true
help: "Directory or '.cabal' file for the project"
- stash:
short: s
long: stash
help: Commit using git before making any changes
- old:
value_name: OLD_MODULE
index: 2
required: true
help: Name of old module
- new:
value_name: NEW_MODULE
index: 3
required: true
help: Name of the new module
- hpack:
short: y
long: hpack
help: "Flag to be used when the project uses an 'hpack.yaml' file rather than a '.cabal' file."
- copy:
short: c
long: copy
help: Copy a module rather than moving it.
- idris:
visible_alias: "i"
about: Replace a module across a project
args:
- project:
value_name: PROJECT
index: 1
required: true
help: "Directory or '.ipkg' file for the project"
- stash:
short: s
long: stash
help: Commit using git before making any changes
- old:
value_name: OLD_MODULE
index: 2
required: true
help: Name of old module
- new:
value_name: NEW_MODULE
index: 3
required: true
help: Name of the new module
- copy:
short: c
long: copy
help: Copy a module rather than moving it.
- elm:
visible_alias: "e"
about: Replace a module across a project
args:
- project:
value_name: PROJECT
index: 1
required: true
help: "Directory or 'elm-package.json' file for the project"
- stash:
short: s
long: stash
help: Commit using git before making any changes
- old:
value_name: OLD_MODULE
index: 2
required: true
help: Name of old module
- new:
value_name: NEW_MODULE
index: 3
required: true
help: Name of the new module
- copy:
short: c
long: copy
help: Copy a module rather than moving it.