Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Use UTF-8 bullet for listing #26698

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

Merged
merged 1 commit into from
Mar 30, 2018
Merged

[Console] Use UTF-8 bullet for listing #26698

merged 1 commit into from
Mar 30, 2018

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Mar 28, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

Inspired by the new table style, this updates the listing style.

before

image

after

image

@javiereguiluz
Copy link
Member

Be careful. That's one of the multiple characters that don't work on Windows. See https://github.com/sindresorhus/figures

@ro0NL
Copy link
Contributor Author

ro0NL commented Mar 28, 2018

Now ready :)

private function getFixtureFilename($name)
{
$format = $this->getFormat();
$file = ($baseDir = __DIR__.'/../../Fixtures/Descriptor').'/'.$name.'.'.$format;
Copy link
Member

Choose a reason for hiding this comment

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

can you move the $baseDir assignement to its own statement ? Nested assignments are not that readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ogizanagi
Copy link
Contributor

ogizanagi commented Mar 28, 2018

Duplicating expected outputs for Windows may be unwanted. Can't we use matchesFormat or str_replace bullets instead (and create a dedicated test case for this behavior)?

@ro0NL
Copy link
Contributor Author

ro0NL commented Mar 28, 2018

the files are globbed.. i found this the easiest, To maintain and be future proof. Not aiming for in-test formatting hassle / excluding these fixtures into separate tests.

@nicolas-grekas nicolas-grekas added this to the 4.1 milestone Mar 29, 2018
@fabpot
Copy link
Member

fabpot commented Mar 30, 2018

Thank you @ro0NL.

@fabpot fabpot closed this Mar 30, 2018
@fabpot fabpot merged commit d1e4acb into symfony:master Mar 30, 2018
fabpot added a commit that referenced this pull request Mar 30, 2018
This PR was squashed before being merged into the 4.1-dev branch (closes #26698).

Discussion
----------

[Console] Use UTF-8 bullet for listing

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Inspired by the new table style, this updates the listing style.

before

![image](https://user-images.githubusercontent.com/1047696/38031214-019c79f4-329b-11e8-8352-9453c7ccc129.png)

after

![image](https://user-images.githubusercontent.com/1047696/38031186-ed8b1e66-329a-11e8-8538-2256a0e24a42.png)

Commits
-------

d1e4acb [Console] Use UTF-8 bullet for listing
@ro0NL ro0NL deleted the cli-list-bullet branch March 30, 2018 09:08
@fabpot
Copy link
Member

fabpot commented Apr 1, 2018

reverted, see discussion on #26718

fabpot added a commit that referenced this pull request Apr 1, 2018
@fabpot fabpot mentioned this pull request May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants