Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Laravel Prompts to command interface #19 #74

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arduinomaster22
Copy link

This pull request introduces several changes to enhance the functionality and user experience of the SEO scanning tool. The primary updates include the integration of the Laravel Prompts package, modifications to the SeoScanUrl command to improve user interaction, and updates to the Seo class to utilize the new progress functionality.

Integration and functionality improvements:

  • composer.json: Added laravel/prompts package to the dependencies.
  • src/Commands/SeoScanUrl.php: Updated the command to use Laravel Prompts for user input and progress indication. This includes changing the url argument to be optional and adding interactive prompts for the URL and JavaScript option.

Class updates:

  • src/Seo.php: Replaced the Symfony ProgressBar with Laravel Prompts Progress for better progress tracking. [1] [2]

Copy link
Member

@Baspa Baspa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also take a look at the tests? They're failing now.

$this->info('Please wait while we scan your web page...');
$this->line('');
$url = $this->argument('url') ?? text(
label: 'Pleaes enter the url',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here

class SeoScanUrl extends Command
{
public $signature = 'seo:scan-url {url} {--javascript}';
public $signature = 'seo:scan-url {url?} {--javascript}';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I don't want to enter a url and want to scan the whole website?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah never mind I see it's the Scan URL command 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants