Skip to content

Commit

Permalink
Fixed incorrect Color class location
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Aug 9, 2024
1 parent 9fcc135 commit 4dec204
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src-hub/Commands/GenerateDocs.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace Cognesy\InstructorHub\Commands;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Core\Command;
use Cognesy\InstructorHub\Services\MintlifyDocGenerator;
use Cognesy\InstructorHub\Utils\Color;

class GenerateDocs extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Commands/ListAllExamples.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Cognesy\InstructorHub\Commands;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Core\Command;
use Cognesy\InstructorHub\Data\Example;
use Cognesy\InstructorHub\Services\ExampleRepository;
use Cognesy\InstructorHub\Utils\Color;

class ListAllExamples extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Commands/RunAllExamples.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace Cognesy\InstructorHub\Commands;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Core\Command;
use Cognesy\InstructorHub\Services\Runner;
use Cognesy\InstructorHub\Utils\Color;

class RunAllExamples extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Commands/RunOneExample.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
namespace Cognesy\InstructorHub\Commands;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Core\Command;
use Cognesy\InstructorHub\Data\Example;
use Cognesy\InstructorHub\Services\ExampleRepository;
use Cognesy\InstructorHub\Services\Runner;
use Cognesy\InstructorHub\Utils\Color;

class RunOneExample extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Commands/ShowExample.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Cognesy\InstructorHub\Commands;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Core\Command;
use Cognesy\InstructorHub\Services\ExampleRepository;
use Cognesy\InstructorHub\Utils\CliMarkdown;
use Cognesy\InstructorHub\Utils\Color;

class ShowExample extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Core/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Cognesy\InstructorHub\Core;

use Cognesy\Instructor\Utils\Color;
use Cognesy\Instructor\Utils\Console;
use Cognesy\InstructorHub\Utils\Color;

class Cli
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Core/CliApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Cognesy\InstructorHub\Core;

use Cognesy\Instructor\Configuration\Configuration;
use Cognesy\InstructorHub\Utils\Color;
use Cognesy\Instructor\Utils\Color;

abstract class CliApp {
private CommandProvider $commandProvider;
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Utils/CliMarkdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Cognesy\InstructorHub\Utils;

use cebe\markdown\GithubMarkdown;
use Cognesy\Instructor\Utils\Color as IColor;
use Cognesy\InstructorHub\Core\Cli;
use Toolkit\Cli\Color;
use Toolkit\Cli\Color\ColorTag;
Expand All @@ -20,7 +21,6 @@
use function substr;
use function trim;
use function ucwords;
use Cognesy\InstructorHub\Utils\Color as IColor;

/**
* Class CliMarkdown
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Views/DocGenView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Cognesy\InstructorHub\Views;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Data\Example;
use Cognesy\InstructorHub\Utils\Color;

class DocGenView
{
Expand Down
2 changes: 1 addition & 1 deletion src-hub/Views/RunnerView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Cognesy\InstructorHub\Views;

use Cognesy\Instructor\Utils\Color;
use Cognesy\InstructorHub\Core\Cli;
use Cognesy\InstructorHub\Data\Example;
use Cognesy\InstructorHub\Utils\Color;
use Exception;

class RunnerView
Expand Down
3 changes: 2 additions & 1 deletion src/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
namespace Cognesy\Instructor\Events;

use Cognesy\Instructor\Utils\Console;
use Cognesy\Instructor\Utils\Json;
use Cognesy\Instructor\Utils\Uuid;
use Cognesy\InstructorHub\Utils\Color;
use Cognesy\Instructor\Utils\Color;
use DateTimeImmutable;
use Psr\Log\LogLevel;

Expand Down
3 changes: 1 addition & 2 deletions src-hub/Utils/Color.php → src/Utils/Color.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

namespace Cognesy\InstructorHub\Utils;
namespace Cognesy\Instructor\Utils;

class Color
{
Expand Down
3 changes: 0 additions & 3 deletions src/Utils/Console.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php

namespace Cognesy\Instructor\Utils;

use Cognesy\InstructorHub\Utils\Color;

class Console
{
public static function columns(array $columns, int $maxWidth): string {
Expand Down

0 comments on commit 4dec204

Please sign in to comment.