Compare commits

...

4 Commits

Author SHA1 Message Date
github-actions[bot]
4673e6e1f6 chore(release): Update version to v1.4.389 2026-01-23 17:38:17 +00:00
Kayvan Sylvan
847749567f Merge pull request #1960 from ksylvan/kayvan/consume-all-commandline-args
fix: consume all positional arguments as input
2026-01-23 09:35:56 -08:00
Kayvan Sylvan
5bea5e0f9c chore: incoming 1960 changelog entry 2026-01-23 09:33:27 -08:00
Kayvan Sylvan
cc56013004 fix: consume all positional arguments as input
Changed from using only the last positional argument (args[len(args)-1])
to joining all positional arguments with spaces. This allows commands like:
  fabric -p pattern_name How do I use fabric to list available models
to consume the entire phrase instead of just "models".

Fixes #1958

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-23 09:29:11 -08:00
5 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## v1.4.389 (2026-01-23)
### PR [#1960](https://github.com/danielmiessler/Fabric/pull/1960) by [ksylvan](https://github.com/ksylvan): fix: consume all positional arguments as input
- Fix: consume all positional arguments as input by joining all positional arguments with spaces instead of using only the last argument, allowing commands to process entire phrases correctly
## v1.4.388 (2026-01-23)
### PR [#1957](https://github.com/danielmiessler/Fabric/pull/1957) by [ksylvan](https://github.com/ksylvan): Add Novita AI as a new OpenAI-compatible provider

View File

@@ -1,3 +1,3 @@
package main
var version = "v1.4.388"
var version = "v1.4.389"

Binary file not shown.

View File

@@ -213,7 +213,7 @@ func Init() (ret *Flags, err error) {
// Append positional arguments to the message (custom message)
if len(args) > 0 {
ret.Message = AppendMessage(ret.Message, args[len(args)-1])
ret.Message = AppendMessage(ret.Message, strings.Join(args, " "))
}
if pipedToStdin {

View File

@@ -1 +1 @@
"1.4.388"
"1.4.389"