puppetlabs-toy-chest / wash

Wide Area SHell: a cloud-native shell for bringing remote infrastructure to your terminal.
https://puppetlabs.github.io/wash
Apache License 2.0
180 stars 29 forks source link

Implement creating new entries #741

Open MikaelSmith opened 4 years ago

MikaelSmith commented 4 years ago

Writable allows changing or submitting content to an existing entry. To create a new entry, we need a new semantic for what it means to create it.

Creating a new file entry with content is probably not much (any?) different than updating an existing one. Creating a new directory probably requires different semantics - it may need configuration that's not present as content.

MikaelSmith commented 4 years ago

Should do https://github.com/puppetlabs/wash/issues/675 first.

MikaelSmith commented 4 years ago

Initial thought (from Enis): plugin interface is an entry configuration struct (JSON object for external plugins) that can have configuration. File creation with file content will be a special case of this.