#noob dagger call question

1 messages · Page 1 of 1 (latest)

wraith whale
#

should i be able to dagger call any function in dagger/main.py or dagger/src/index.ts?

i'm seeing:

Error: unknown command "grep_dir" for "dagger call"

and

Error: unknown command "grepDir" for "dagger call"

with the sample functions in there generated by dagger init

copper cairn
#

@wraith whale dagger functions and dagger call --help will show you the correct convention to call the function

#

we convert the casing of the function to be kebab-case for the CLI as that's the convention widely used for CLI apps

#

so in your case it should be dagger call grep-dir