1 const config = require('application-config')('PeerTube/CLI')
2 const netrc = require('netrc-parser').default
3 import { getVersion } from '../helpers/utils'
5 const version = getVersion
17 async function getSettings () {
18 return new Promise<Settings>((res, rej) => {
23 config.read((err, data) => {
27 return res(data || settings)
32 async function writeSettings (settings) {
33 return new Promise((res, rej) => {
34 config.write(settings, function (err) {
45 // ---------------------------------------------------------------------------