Skip to content

Commit

Permalink
Remove the VERSION section in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Oct 16, 2023
1 parent c962d4c commit 8298bb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,6 @@ Shows help for the Fauna CLI.
```sh
faunadb shell

VERSION
fauna-shell/1.1.0 darwin-x64 node-v20.6.0

USAGE
$ fauna [COMMAND]

Expand Down
9 changes: 8 additions & 1 deletion readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ def run(command: list[str]) -> str:

if end != None:
print(f"updated command {command}")
result = run(["./bin/run", *command[1:], "--help"]).strip().split("\n")
result = run(["./bin/run", *command[1:], "--help"]).strip()

# remove the VERSION section
if command == ["fauna", "help"]:
m = re.search("VERSION.*\n.*\n\n", result)
result = result[:m.start()] + result[m.end():]

result = result.split("\n")
lines[start:end] = result
i += len(result) - (end - start)

Expand Down

0 comments on commit 8298bb7

Please sign in to comment.