Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,22 @@ conductor config <command> [arguments] [flags]

---

### Code Generation Commands

Generate worker scaffold code for a given language and template.

```
conductor code [flags]
```

| Flag | Description |
|------|-------------|
| `-l, --lang` | Programming language (e.g. `python`, `java`, `go`) |
| `-t, --template` | Template name |
| `-n, --name` | Project name |

> **Note:** `conductor code` prompts interactively for any fields not supplied as flags (including task name). It cannot be used non-interactively via pipe or in CI — passing all inputs via flags is not yet fully supported. Use `conductor code list` to see available templates.

### Other Commands

| Command | Description |
Expand Down
7 changes: 4 additions & 3 deletions cmd/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ func buildTemplateContext(fields []Field, reader *bufio.Reader) (map[string]inte
}

serverURL := viper.GetString("server")
if serverURL != "" {
context["server_url"] = serverURL
context["server"] = serverURL
if serverURL == "" {
serverURL = "http://localhost:8080/api"
}
context["server_url"] = serverURL
context["server"] = serverURL

authKey := viper.GetString("auth-key")
if authKey != "" {
Expand Down
5 changes: 4 additions & 1 deletion cmd/whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ var whoamiCmd = &cobra.Command{
}
jwtToken = tokenResponse.Token
} else {
return fmt.Errorf("no authentication configured - please configure auth-token or auth-key/auth-secret")
// No auth configured — normal for OSS Conductor
fmt.Printf("Server: %s\n", url)
fmt.Println("Authentication: none (OSS Conductor)")
return nil
}

// Print server URL
Expand Down
1 change: 1 addition & 0 deletions cmd/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ func registerWorkflow(data []byte, force bool) error {
if err != nil {
return parseAPIError(err, "Failed to create workflow")
}
fmt.Printf("Workflow '%s' version %d registered successfully\n", workflowDef.Name, workflowDef.Version)
return nil
}

Expand Down
Loading