Skip to content

Conversation

@jsternberg
Copy link
Contributor

@jsternberg jsternberg commented Mar 29, 2022

This merges the fmt and test commands into the flux cli that's been
getting tested in internal/cmd and then it promotes the one in
internal/cmd to cmd.

This removes the execute and repl commands and instead makes those
the default. When no parameters are used, the repl is started. When a
parameter is used, the script is executed. In addition, the script is
executed in a normal context rather than hacking it through the repl.
This should make the results of running a script from the CLI be more
similar to if the script were run in InfluxDB.

Fixes #4606.

Done checklist

  • docs/SPEC.md updated
  • Test cases written

@jsternberg jsternberg requested a review from a team as a code owner March 29, 2022 16:23
@jsternberg jsternberg requested review from nathanielc and removed request for a team March 29, 2022 16:23
Copy link
Contributor

@nathanielc nathanielc left a comment

Choose a reason for hiding this comment

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

LGTM but I expect there are a few places in CI that need updating. The checkfmt step is failing as well as I expect the fluxdoc step to fail since it explicitly installs the internal/cmd. A simple fix to the Makefile should be enough.

Approving as I don't need to re-review once CI is happy.

This merges the fmt and test commands into the flux cli that's been
getting tested in `internal/cmd` and then it promotes the one in
`internal/cmd` to `cmd`.

This removes the `execute` and `repl` commands and instead makes those
the default. When no parameters are used, the `repl` is started. When a
parameter is used, the script is executed. In addition, the script is
executed in a normal context rather than hacking it through the repl.
This should make the results of running a script from the CLI be more
similar to if the script were run in InfluxDB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge internal and current flux clis and promote the internal version to the official version

3 participants