-
Notifications
You must be signed in to change notification settings - Fork 2
/
ReSharper
executable file
·36 lines (30 loc) · 1000 Bytes
/
ReSharper
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
#!/usr/bin/env bash
. "${BASH_SOURCE[0]%/*}/function.sh" app script || exit
usage()
{
ScriptUsage "$1" "\
Usage: $(ScriptName) [OPTION]... [profile](profile)
$(ScriptName) commands."
}
init()
{
defaultCommand="profile"
profileName="ReSharper"
solutionCacheDir="$UADATA/JetBrains/ReSharper/v$version/SolutionCaches"
version="7.1"
}
isInstalledCommand() { return 0; }
#
# Profile Command
#
profileUsage() { echot "Usage: $(ScriptName) profile dir|SaveDir|save|restore [<profile name>|default](latest)\n$(ScriptName) configuration."; }
profileArgs() { profileArgs=( "$@" ); (( shift+=$# )); return 0; }
profileCommand()
{
AppInstallCheck || return
ScriptEval VisualStudio init || return
[[ "${profileArgs[0]}" == @(restore|save) ]] &&
echo "- Extensions, ReSharper, Manage Options..., Import and Export, Export to File..., select all"
profile $noPrompt --app "$profileName" --method "$vsIde" --save-extension "DotSettings" "${profileArgs[@]}" || return;
}
ScriptRun "$@"