Skip to content

Commit c6f35bc

Browse files
author
naman-msft
committed
upaded tool
1 parent c18b9e1 commit c6f35bc

File tree

3 files changed

+42
-112
lines changed

3 files changed

+42
-112
lines changed

tools/Deploy Linux VM and Connect via SSH_ai_generated.md

Lines changed: 0 additions & 97 deletions
This file was deleted.

tools/ada.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,33 +1624,36 @@ def get_content_from_file(file_path):
16241624

16251625
def collect_data_sources():
16261626
"""Collect data sources from the user."""
1627-
print_message("\nWould you like to add reference data sources for documentation generation? (y/n): ")
1628-
choice = input().lower().strip()
1627+
1628+
choice = input("\nWould you like to add data sources the AI should use to generate the doc? (y/n): ").lower().strip()
16291629

16301630
if choice != 'y':
16311631
return ""
16321632

16331633
sources = []
1634-
print_message("\nEnter data sources (URLs or local file paths) one per line.")
1635-
print_message("When finished, enter a blank line:")
1636-
1634+
print_message("\nEnter data sources (URLs or local file paths) one per line. When finished, enter a blank line:")
1635+
1636+
line_num = 1
16371637
while True:
1638-
source = input().strip()
1638+
source = input(f"\n{line_num}. ").strip()
16391639
if not source:
16401640
break
16411641

16421642
# Detect if it's a URL or file path
16431643
if source.startswith(('http://', 'https://')):
1644-
print_message(f"\nFetching content from URL: {source}...\n", prefix="🔗 ")
1644+
print_message("")
1645+
print_message(f"Fetching content from URL: {source}...", prefix="🔗 ")
16451646
content = get_content_from_url(source)
16461647
sources.append(f"--- Content from URL: {source} ---\n{content}\n")
16471648
else:
16481649
if os.path.exists(source):
1649-
print_message(f"\nReading file: {source}...\n", prefix="📄 ")
1650+
print_message(f"Reading file: {source}...", prefix="📄 ")
16501651
content = get_content_from_file(source)
16511652
sources.append(f"\n--- Content from file: {source} ---\n{content}\n")
16521653
else:
16531654
print_message(f"File not found: {source}", color="red")
1655+
1656+
line_num += 1
16541657

16551658
if sources:
16561659
print_message(f"\nCollected content from {len(sources)} source(s).", prefix="✓ ")
@@ -1688,7 +1691,7 @@ def main():
16881691
continue
16891692

16901693
# Add new option for interactive mode
1691-
interactive_mode = input("\nEnable interactive mode (you will be prompted for feedback after each step)? (y/n, default: n): ").lower() == 'y'
1694+
interactive_mode = input("\nEnable interactive mode (you will be prompted for feedback after each step)? (y/n): ").lower() == 'y'
16921695

16931696
input_type = 'file'
16941697
with open(user_input, "r") as f:
@@ -1716,7 +1719,7 @@ def main():
17161719
user_input = workload_description
17171720

17181721
# Add new option for interactive mode
1719-
interactive_mode = input("\nEnable interactive mode (you will be prompted for feedback after each step)? (y/n, default: n): ").lower() == 'y'
1722+
interactive_mode = input("\nEnable interactive mode (you will be prompted for feedback after each step)? (y/n): ").lower() == 'y'
17201723

17211724
input_type = 'workload_description'
17221725
input_content = user_input

0 commit comments

Comments
 (0)