#comment out ssh commands

1 messages · Page 1 of 1 (latest)

azure coral
#

In my dagger action, I have script: contents: """ with a bunch of ssh commands. Is it possible to comment out one of the commands so that Cue is happy with it?

distant yoke
#

Are you getting an error?
Here's a working example:

// The first time you run the hello
// action as `dagger do hello --log-format plain`,
// make sure to run `dagger project update` first,
// so that all required dependencies are available.

package hello

import (
  "dagger.io/dagger"
  "universe.dagger.io/bash"
  "universe.dagger.io/alpine"

)

dagger.#Plan & {
  actions: {
    _alpine: alpine.#Build & {
      packages: bash: _
    }

    // Hello world
    hello: bash.#Run & {
      input: _alpine.output
      script: contents: """
        # this is a comment
        echo Hello World
        """
      always: true
    }
  }
}
azure coral
#

Hmm, interesting. I tried # but it kind of got ignored, and still complained about the sed command, ok, I'll wait for my other question to be answered 🙂