Closed hushenghao closed 5 years ago
It is already possible to set an environment variable for this. Currently this is only mentioned in the Docker-section of wiki but i guess it would be a good addition for the section about command-line arguments as well.
~Abrynos
@Abrynos ASF_ARGS
applies only to helper scripts, and they also have various limitations, for example not being possible to use path with spaces. Adding ASF_PATH
sounds good.
我是直接运行在树莓派上的,并没有使用Docker 我的 .profile 设置:
export PATH="$PATH:$HOME/Downloads/ASF-linux-arm/:$HOME/Downloads/"
export ASF_ARGS="--path=$HOME/ASF-config/"
但是ASF好像并不能找到ASF_ARGS env
It doesn't because like I said, ASF_ARGS
is parsed only in helper scripts on generic variants, and you're using platform-specific.
Use ASF_PATH
instead, available since ASF V4.0.3.0.
It doesn't because like I said,
ASF_ARGS
is parsed only in helper scripts on generic variants, and you're using platform-specific.Use
ASF_PATH
instead, available since ASF V4.0.3.0.
That is to say, I have to use ASF-generic before I can parse using ASF_ARGS?
No, you'd need to use ASF-generic and ArchiSteamFarm.sh
helper script (or write your own that would parse ASF_ARGS
).
My suggestion is to wait for the next release instead, ASF_ARGS
is for docker scenarios mainly and shouldn't be used for neither --path
nor --cryptkey
.
Ok, I know, I can try it because I am not good at C#. 3q
Feature request
自定义参数--path希望可以从环境变量中读取
Purpose
防止每次命令都需要拼接参数
Solution
一种方案是直接从环境变量中读取,--path参数内容; 另一种方案是使用配置文件,读取固定路径的配置文件,读取config或者www等路径,使这些路径更加容易配置
Why currently available solutions are not sufficient?
目前命令行拼接参数,容易拼写错误,或者有些平台对相对路径支持的不够好
Does your suggestion fall into ASF scope?
yes
Is your suggestion abiding to Steam guidelines?
yes
Additional info
谢谢你们开发这么棒的工具,Thank you!!!