CaptnCodr / Fli

Execute CLI commands from your F# code in F# style!
MIT License
153 stars 5 forks source link

add Python3 compatible Shell to run python commands #65

Open jkone27 opened 1 month ago

jkone27 commented 1 month ago

could be useful to be able to run python commands also in shell, as is the most used scripting lang

CaptnCodr commented 1 month ago

You can simply send python commands into python when you do:

cli {
    Exec "python"
    Arguments [|"-c"; "\"help()\""|]
} 
|> Command.execute

or withing powershell:

cli {
    Shell PWSH
    Command "python -c \"help()\""
}
|> Command.execute

(When you have python installed :))

@jkone27 Does this help?