mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-12 15:43:06 +08:00
* upgrade: docker-compose - user docker compose instead * remove: yarn and clean format js file
17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
'use strict';
|
|
|
|
var stringifyString = require('../../stringify/stringifyString.js');
|
|
|
|
const string = {
|
|
identify: value => typeof value === 'string',
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:str',
|
|
resolve: str => str,
|
|
stringify(item, ctx, onComment, onChompKeep) {
|
|
ctx = Object.assign({ actualString: true }, ctx);
|
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
}
|
|
};
|
|
|
|
exports.string = string;
|