File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff line change 1
1
set windows-shell := [" powershell.exe" , " -NoLogo" , " -Command" ]
2
2
set unstable := true
3
3
set script-interpreter := [' uv' , ' run' , ' --script' ]
4
- set positional-arguments := true
5
4
6
5
export PYTHONPATH := source_directory ()
7
6
@@ -10,7 +9,7 @@ default:
10
9
@ just --list --list-submodules
11
10
12
11
[script ]
13
- _ manage * COMMAND :
12
+ manage * COMMAND :
14
13
import os
15
14
import sys
16
15
import shlex
@@ -19,38 +18,6 @@ _manage *COMMAND:
19
18
os .environ.setdefault(" DJANGO_SETTINGS_MODULE" , " tests.settings.base" )
20
19
management.execute_from_command_line([" just manage" , *shlex.split(" {{ COMMAND }} " )])
21
20
22
- # run the django admin
23
- manage * COMMAND :
24
- #! / bin/ sh
25
- ARGS_LIST=" "
26
- for arg in " $@" ; do
27
- case " $arg" in
28
- *[[:space:]]*)
29
- # Argument contains a space; wrap it in quotes.
30
- ARGS_LIST=" ${ARGS_LIST} \"\' ${arg}\'\" "
31
- ;;
32
- *)
33
- # No spaces, print as-is.
34
- ARGS_LIST=" ${ARGS_LIST} ${arg}"
35
- ;;
36
- esac
37
- done
38
- eval " just _manage $ARGS_LIST"
39
-
40
- # run the django admin
41
- [windows ]
42
- manage * COMMAND :
43
- $ARGS_LIST = " "
44
- foreach ($arg in $args) {
45
- if ($arg -match " \s " ) {
46
- $ARGS_LIST + = " " + ' "' + " '" + $arg + " '" + ' "'
47
- }
48
- else {
49
- $ARGS_LIST + = " " + $arg
50
- }
51
- }
52
- Invoke-Expression " just _manage $ARGS_LIST"
53
-
54
21
# install the uv package manager
55
22
[linux ]
56
23
[macos ]
You can’t perform that action at this time.
0 commit comments