From 486f8a070a8e55883168b224d9edf8795e4c867c Mon Sep 17 00:00:00 2001 From: kitsunecafe Date: Tue, 5 Nov 2024 03:31:01 -0600 Subject: [PATCH] lens -> assoc --- src/config.js | 7 +------ src/index.js | 4 +++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/config.js b/src/config.js index 68112d1..ea1db98 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,5 @@ import npath from 'node:path' -import { assoc, concat, curry, curryN, lens, merge, pipe, prop, set, view } from 'rambda' +import { assoc, concat, curry, curryN, merge, pipe, prop } from 'rambda' import { map, get as getMap } from './project.js' import { get as getLinker } from './linker.js' import { Cargo } from './cargo.js' @@ -7,11 +7,6 @@ import { Crate } from './crates.js' const optLevel = value => ({ 'opt-level': value }) -//const assoc = curry((key, value, obj) => { -// const l = lens(prop(key), assoc(key)) -// return set(l, value, obj) -//}) - export const Bevy = Object.freeze({ active: () => true, apply: curry(({ 'bevy-version': bevy }, project) => diff --git a/src/index.js b/src/index.js index 79680ac..0699ad7 100644 --- a/src/index.js +++ b/src/index.js @@ -4,8 +4,8 @@ import path from 'node:path' import { parse, stringify } from 'smol-toml' import { reduce } from 'rambda' import * as Project from './project.js' -import { Cargo } from './cargo.js' import * as Configurations from './config.js' +import { Cargo } from './cargo.js' import { Crate } from './crates.js' const help = () => `Usage: @@ -52,6 +52,8 @@ const defaultBevyVersion = () => const defaultLinker = () => process.platform === 'darwin' ? undefined : 'lld' +// change this so that all flags become false when one boolean flag is passed +// bevy-cli -n means that only nightly is enabled const schema = Object.freeze({ string: ['bevy-version', 'linker'], boolean: ['devopt', 'relopt', 'dynlink', 'nightly', 'cranelift', 'genshare', 'parallel', 'version'],