fix: flatten React Router structure — no nested Routes, each page is a top-level route
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
from detect_installer import detect_installer
|
||||
|
||||
|
||||
def main() -> None:
|
||||
info = detect_installer("detect-installer")
|
||||
|
||||
if info is None:
|
||||
print("Could not detect installer for detect-installer")
|
||||
sys.exit(1)
|
||||
|
||||
json.dump(
|
||||
{
|
||||
"installer": info.installer.value,
|
||||
"upgrade_cmd": info.upgrade_cmd,
|
||||
},
|
||||
sys.stdout,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user