Make source ~/.bashrc instruction more prominent after provider install

Always show the IMPORTANT message about refreshing PATH, with clear
step numbering that makes source ~/.bashrc step 1.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rob 2025-12-29 23:47:11 -04:00
parent d830a483d9
commit e2816bf6f6
1 changed files with 8 additions and 10 deletions

View File

@ -491,23 +491,21 @@ def cmd_providers(args):
if new_paths: if new_paths:
os.environ["PATH"] = ":".join(new_paths) + ":" + current_path os.environ["PATH"] = ":".join(new_paths) + ":" + current_path
print()
print(f"Added to PATH (for this session): {', '.join(new_paths)}")
print()
print("To use in your shell, run one of:")
print(" source ~/.bashrc")
print(" # or start a new shell")
print() print()
print("Installation completed!") print("Installation completed!")
print() print()
print("IMPORTANT: Refresh your shell PATH before continuing:")
print(" source ~/.bashrc")
print()
print(f"Next steps:") print(f"Next steps:")
print(f" 1. {info['setup']}") print(f" 1. source ~/.bashrc (required!)")
print(f" 2. {info['setup']}")
if info.get('post_install_note'): if info.get('post_install_note'):
print(f" 2. {info['post_install_note']}") print(f" 3. {info['post_install_note']}")
print(f" 3. Test with: smarttools providers test {selected}") print(f" 4. Test with: smarttools providers test {selected}")
else: else:
print(f" 2. Test with: smarttools providers test {info['variants'][0] if info['variants'] else selected}") print(f" 3. Test with: smarttools providers test {info['variants'][0] if info['variants'] else selected}")
else: else:
print() print()
print(f"Installation failed (exit code {result.returncode})") print(f"Installation failed (exit code {result.returncode})")