fix(infra): gradle_run detecta android-sdk — issue 0076 #2
@@ -1,9 +1,11 @@
|
||||
package shell
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// Run ejecuta un comando del sistema con timeout de 30 segundos y devuelve el resultado.
|
||||
func Run(name string, args ...string) Result[CmdResult] {
|
||||
func Run(name string, args ...string) (CmdResult, error) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Result[CmdResult]{}
|
||||
return CmdResult{}, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package shell
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// RunWithTimeout ejecuta un comando del sistema con timeout configurable.
|
||||
func RunWithTimeout(name string, timeout time.Duration, args ...string) Result[CmdResult] {
|
||||
func RunWithTimeout(name string, timeout time.Duration, args ...string) (CmdResult, error) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Result[CmdResult]{}
|
||||
return CmdResult{}, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package shell
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// RunPipe encadena multiples comandos con pipe y devuelve el resultado final.
|
||||
func RunPipe(commands ...string) Result[CmdResult] {
|
||||
func RunPipe(commands ...string) (CmdResult, error) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Result[CmdResult]{}
|
||||
return CmdResult{}, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package shell
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// RunShell ejecuta un comando shell interpretado por /bin/sh.
|
||||
func RunShell(command string) Result[CmdResult] {
|
||||
func RunShell(command string) (CmdResult, error) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Result[CmdResult]{}
|
||||
return CmdResult{}, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package shell
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// RunShellTimeout ejecuta un comando shell con timeout configurable.
|
||||
func RunShellTimeout(command string, timeout time.Duration) Result[CmdResult] {
|
||||
func RunShellTimeout(command string, timeout time.Duration) (CmdResult, error) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Result[CmdResult]{}
|
||||
return CmdResult{}, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ package shell
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
|
||||
// Which busca la ruta de un ejecutable en el PATH del sistema. Devuelve None si no existe.
|
||||
func Which(name string) Option[string] {
|
||||
// Which busca la ruta de un ejecutable en el PATH del sistema. Devuelve ("", false) si no existe.
|
||||
func Which(name string) (string, bool) {
|
||||
// stub — implementation in devfactory/shell
|
||||
return Option[string]{}
|
||||
return "", false
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package tui
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/tui
|
||||
import "fmt"
|
||||
|
||||
// Confirm muestra un dialogo de confirmacion Si/No en terminal y devuelve la eleccion del usuario.
|
||||
func Confirm(prompt string) Result[bool] {
|
||||
// Confirm muestra un prompt de confirmacion si/no en la terminal.
|
||||
func Confirm(prompt string) (bool, error) {
|
||||
// stub — implementation in devfactory/tui
|
||||
return Result[bool]{Value: false}
|
||||
return false, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package tui
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/tui
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
import "github.com/charmbracelet/bubbletea"
|
||||
|
||||
// RunFullscreen ejecuta un modelo Bubble Tea en modo fullscreen.
|
||||
func RunFullscreen[T tea.Model](model T) Result[T] {
|
||||
// RunFullscreen ejecuta un modelo Bubbletea en modo fullscreen.
|
||||
func RunFullscreen[T tea.Model](model T) (T, error) {
|
||||
// stub — implementation in devfactory/tui
|
||||
var zero T
|
||||
return Result[T]{Value: zero}
|
||||
return zero, nil
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package tui
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/tui
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
import "github.com/charmbracelet/bubbletea"
|
||||
|
||||
// RunModel ejecuta un modelo Bubble Tea y devuelve el modelo final o error.
|
||||
func RunModel[T tea.Model](model T) Result[T] {
|
||||
// RunModel ejecuta un modelo Bubbletea y devuelve el modelo final.
|
||||
func RunModel[T tea.Model](model T) (T, error) {
|
||||
// stub — implementation in devfactory/tui
|
||||
var zero T
|
||||
return Result[T]{Value: zero}
|
||||
return zero, nil
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package tui
|
||||
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/tui
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
import "github.com/charmbracelet/bubbletea"
|
||||
|
||||
// RunWithMouseSupport ejecuta un modelo Bubble Tea con soporte de raton habilitado.
|
||||
func RunWithMouseSupport[T tea.Model](model T) Result[T] {
|
||||
// RunWithMouseSupport ejecuta un modelo Bubbletea con soporte de mouse.
|
||||
func RunWithMouseSupport[T tea.Model](model T) (T, error) {
|
||||
// stub — implementation in devfactory/tui
|
||||
var zero T
|
||||
return Result[T]{Value: zero}
|
||||
return zero, nil
|
||||
}
|
||||
|
||||
@@ -1,8 +1,35 @@
|
||||
module fn-registry
|
||||
|
||||
go 1.22.2
|
||||
go 1.24.2
|
||||
|
||||
require (
|
||||
github.com/mattn/go-sqlite3 v1.14.37
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
||||
github.com/charmbracelet/bubbles v1.0.0 // indirect
|
||||
github.com/charmbracelet/bubbletea v1.3.10 // indirect
|
||||
github.com/charmbracelet/colorprofile v0.4.1 // indirect
|
||||
github.com/charmbracelet/harmonica v0.2.0 // indirect
|
||||
github.com/charmbracelet/lipgloss v1.1.0 // indirect
|
||||
github.com/charmbracelet/x/ansi v0.11.6 // indirect
|
||||
github.com/charmbracelet/x/cellbuf v0.0.15 // indirect
|
||||
github.com/charmbracelet/x/term v0.2.2 // indirect
|
||||
github.com/clipperhouse/displaywidth v0.9.0 // indirect
|
||||
github.com/clipperhouse/stringish v0.1.1 // indirect
|
||||
github.com/clipperhouse/uax29/v2 v2.5.0 // indirect
|
||||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
|
||||
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-localereader v0.0.1 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.19 // indirect
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
|
||||
github.com/muesli/cancelreader v0.2.2 // indirect
|
||||
github.com/muesli/termenv v0.16.0 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
||||
golang.org/x/sys v0.38.0 // indirect
|
||||
golang.org/x/text v0.3.8 // indirect
|
||||
)
|
||||
|
||||
@@ -1,5 +1,55 @@
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
|
||||
github.com/charmbracelet/bubbles v1.0.0 h1:12J8/ak/uCZEMQ6KU7pcfwceyjLlWsDLAxB5fXonfvc=
|
||||
github.com/charmbracelet/bubbles v1.0.0/go.mod h1:9d/Zd5GdnauMI5ivUIVisuEm3ave1XwXtD1ckyV6r3E=
|
||||
github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw=
|
||||
github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4=
|
||||
github.com/charmbracelet/colorprofile v0.4.1 h1:a1lO03qTrSIRaK8c3JRxJDZOvhvIeSco3ej+ngLk1kk=
|
||||
github.com/charmbracelet/colorprofile v0.4.1/go.mod h1:U1d9Dljmdf9DLegaJ0nGZNJvoXAhayhmidOdcBwAvKk=
|
||||
github.com/charmbracelet/harmonica v0.2.0 h1:8NxJWRWg/bzKqqEaaeFNipOu77YR5t8aSwG4pgaUBiQ=
|
||||
github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao=
|
||||
github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY=
|
||||
github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30=
|
||||
github.com/charmbracelet/x/ansi v0.11.6 h1:GhV21SiDz/45W9AnV2R61xZMRri5NlLnl6CVF7ihZW8=
|
||||
github.com/charmbracelet/x/ansi v0.11.6/go.mod h1:2JNYLgQUsyqaiLovhU2Rv/pb8r6ydXKS3NIttu3VGZQ=
|
||||
github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI=
|
||||
github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q=
|
||||
github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk=
|
||||
github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI=
|
||||
github.com/clipperhouse/displaywidth v0.9.0 h1:Qb4KOhYwRiN3viMv1v/3cTBlz3AcAZX3+y9OLhMtAtA=
|
||||
github.com/clipperhouse/displaywidth v0.9.0/go.mod h1:aCAAqTlh4GIVkhQnJpbL0T/WfcrJXHcj8C0yjYcjOZA=
|
||||
github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfatpWHKCs=
|
||||
github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEXNWYXQgCt4hdOzA=
|
||||
github.com/clipperhouse/uax29/v2 v2.5.0 h1:x7T0T4eTHDONxFJsL94uKNKPHrclyFI0lm7+w94cO8U=
|
||||
github.com/clipperhouse/uax29/v2 v2.5.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=
|
||||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
|
||||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
|
||||
github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag=
|
||||
github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
|
||||
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
||||
github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw=
|
||||
github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
|
||||
github.com/mattn/go-sqlite3 v1.14.37 h1:3DOZp4cXis1cUIpCfXLtmlGolNLp2VEqhiB/PARNBIg=
|
||||
github.com/mattn/go-sqlite3 v1.14.37/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
|
||||
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
|
||||
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
|
||||
github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc=
|
||||
github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
||||
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
|
||||
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
|
||||
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
|
||||
Reference in New Issue
Block a user