Skip to content

Commit

Permalink
feat(cli): support standalone scan, 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Aug 8, 2023
1 parent fd429e2 commit 2df5f1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mina/commands/list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
from pathlib import Path
from argparse import Namespace

try:
Expand All @@ -21,6 +22,11 @@ def handle(self, project: Project, options: Namespace):
(project.root / "pyproject.toml").read_text(encoding="utf-8")
)
mina_packages = pyproj.get("tool", {}).get("mina", {}).get("packages", [])
for i in project.root.glob(".mina/*.toml"):
name = i.name[:-5]
if name not in mina_packages:
mina_packages.append(name)

if not mina_packages:
project.core.ui.echo(
"No mina packages found, you could add some in pyproject.toml."
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ excludes = [

[tool.mina.packages."cli-pdm".project]
name = "pdm-mina"
version = "0.2.2"
version = "0.3.0"
dependencies = [
"pdm",
"mina-build",
Expand Down

0 comments on commit 2df5f1b

Please sign in to comment.