Closed mmarchetti closed 11 months ago
After some discussion, we are leaning toward running init
automatically if there's no config file present when publish
or publish-ui
are invoked.
Should the init
command be top-level? i.e., bin/darwin/arm64/connect-client-0.0.dev2-232-g2e06533e-darwin-arm64 init
?
Should the
init
command be top-level? i.e.,bin/darwin/arm64/connect-client-0.0.dev2-232-g2e06533e-darwin-arm64 init
?
It is, but if you don't have a toml file the error you get reads:
... run 'publish init' to create an initial configuration
so the error text just needs to be updated
When publishing a directory that doesn't contain a config file, the CLI advises to use the
publish init
command. That's confusing becausepublish
is the command to publish.It should recommend running the client'sinit
command without the wordpublish
.Logs:
Running
publish init
says:Originally posted by @kgartland-rstudio in https://github.com/rstudio/publishing-client/issues/402#issuecomment-1832192979