question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

craft provider command inconsistency

See original GitHub issue

Is your feature request related to a problem? Please describe.

craft command X
# Generate class XCommand

craft provider X
# Generate class X

What do we currently have to do now?

craft provider X
# Generate class XProvider

Maybe this ain’t an issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
josephmancusocommented, Feb 6, 2020

yes the point of the Provider/Command at the end of the file is 2 fold.

  1. it makes it easier when you import the class, what the heck it even is.
  2. it makes searching for the file easier because you might not know the name of the listener, job, provider but you can fuzzy search it when in development. Especially when the filename is the same

2.b) I am used to naming classes like that lol

Was choosing postfix (and suffix) for Provider intentional ?

yes the BaseScaffoldCommand was created much after all the other commands were created and they were then all refactored to use this base command. Its possible that the postfix was just skipped.

For consistency, let’s just make everything use the postfix but if the postfix is in the name already, don’t add it again

1reaction
lazygurucommented, Feb 6, 2020

Exactly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provider produced inconsistent result [on Linux] after apply #113
When we run the powershell commands we are probably hitting different members of the DC cluster, and if we ask before the object...
Read more >
Understanding migrations and CLI commands
How does craft know which migrations have been applied and which are new? I.e. Is it by comparing the craft_migrations table to the...
Read more >
Provider Produced Inconsistent Results - Hashicorp Support
Error: Provider produced inconsistent result after apply When applying changes to module.base_network_security.module.nacl_rules_web["subnet- ...
Read more >
The Minecraft Hosting Solution - Troubleshooting - Multicraft
Multicraft: The most popular Minecraft server admin control panel and hosting solution.
Read more >
Command Line — Caddy Documentation
Adapts a configuration to Caddy's native JSON config structure and writes the output to stdout, along with any warnings to stderr, then exits....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found