spectacles icon indicating copy to clipboard operation
spectacles copied to clipboard

[Doc] Should `branch`, `commit_ref`, `project` and `remote-reset` place on global flags page?

Open Shumpei-Kikuta opened this issue 3 years ago • 4 comments

Thank for your work! Spectacles is really helpful for detecting the lookml error and enhancing the lookml code quality.

I read through the document and I found branch, commit_ref, project and remote-reset on each validator section: SQL, Content, Assert and LooML Validation. https://docs.spectacles.dev/cli/reference/sql-validator

These options should be set globally, and it would be clearer to place these options on global flags page. https://docs.spectacles.dev/cli/reference/global-flags

If this proposal is right for you, I want to make a pull request. Is Spectacles document open to commit? I cannot find the repository of the document.

Thank you for consideration!

Shumpei-Kikuta avatar Apr 09 '22 02:04 Shumpei-Kikuta

Hi @Shumpei-Kikuta. Thanks for your message!

I believe the reason we don't have them on the global flags is because they technically don't work with the connect command in Spectacles. That said, we don't have a reference page for connect, which we should probably add.

Unfortunately, our docs are currently not open-source. We might decide to do so in the future, but for the moment this is the best place to recommend/request changes.

DylanBaker avatar Apr 13 '22 10:04 DylanBaker

While I agree we should document the connect command, I agree with @Shumpei-Kikuta that it would make more sense to move all of these things to global flags. For typical Spectacles usage, these are global options. I would rather the connect command be an exception rather than the rule.

joshtemple avatar Apr 13 '22 15:04 joshtemple

I've opened a corresponding issue on our internal docs repo so we can get this resolved.

joshtemple avatar Apr 13 '22 15:04 joshtemple

Thank you @joshtemple . I hope this change makes the document easier to understand !

Shumpei-Kikuta avatar Apr 22 '22 04:04 Shumpei-Kikuta