xenfra 0.2.6__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: xenfra
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: A 'Zen Mode' infrastructure engine for Python developers.
5
5
  Author: xenfra-cloud
6
6
  Author-email: xenfra-cloud <xenfracloud@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xenfra"
3
- version = "0.2.6"
3
+ version = "0.2.7"
4
4
  description = "A 'Zen Mode' infrastructure engine for Python developers."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -5,8 +5,10 @@ A modern, AI-powered CLI for deploying Python apps to DigitalOcean.
5
5
  """
6
6
 
7
7
  import os
8
+ from pathlib import Path
8
9
 
9
10
  import click
11
+ from dotenv import load_dotenv
10
12
  from rich.console import Console
11
13
 
12
14
  from .commands.auth import auth
@@ -17,6 +19,11 @@ from .commands.security_cmd import security
17
19
 
18
20
  console = Console()
19
21
 
22
+ # Load .env file from project root (searches parent directories)
23
+ # This allows CLI to use XENFRA_API_URL and other vars from .env
24
+ load_dotenv(dotenv_path=Path.cwd() / ".env", override=False)
25
+ load_dotenv(override=False) # Also check current directory and parents
26
+
20
27
 
21
28
  @click.group()
22
29
  @click.version_option(version="0.2.3")
File without changes
File without changes
File without changes