使用 Ruby 命令在 SSH 中生成蓝图 CSS 文件时,选项的正确语法是什么?

发布于 2024-08-22 07:03:58 字数 999 浏览 4 评论 0原文

我需要在 Shell 中使用 Ruby 命令生成默认的蓝图 CSS 文件。然而,column_width、amount 和 gutter 参数并没有达到要求。我想我不明白语法...

这是否正确:

ruby compress.rb -o /var/www/css/blueprint/src/ -p 70 15 12

本文档的

joshua-claytons-computer:lib joshuaclayton$ ruby compress.rb -h
Usage: compress.rb [options]
Blueprint Compressor

options
  -o, --output_path=OUTPUT_PATH    Define a different path to output generated CSS files to.
  -n, --namespace=BP_NAMESPACE     Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)
  -p, --project=PROJECT_NAME       If using the settings.yml file, PROJECT_NAME is the project name you want to export
      --column_width=COLUMN_WIDTH  Set a new column width (in pixels) for the output grid
      --gutter_width=GUTTER_WIDTH  Set a new gutter width (in pixels) for the output grid
      --column_count=COLUMN_COUNT  Set a new column count for the output grid
  -h, --help                       Show this help message.

I need to generate default Blueprint CSS files using a Ruby command in the Shell. However the column_width, amount and gutter parameters aren't coming trough. I think i don't understand the syntax...

is this correct:

ruby compress.rb -o /var/www/css/blueprint/src/ -p 70 15 12

for this documentation?

joshua-claytons-computer:lib joshuaclayton$ ruby compress.rb -h
Usage: compress.rb [options]
Blueprint Compressor

options
  -o, --output_path=OUTPUT_PATH    Define a different path to output generated CSS files to.
  -n, --namespace=BP_NAMESPACE     Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)
  -p, --project=PROJECT_NAME       If using the settings.yml file, PROJECT_NAME is the project name you want to export
      --column_width=COLUMN_WIDTH  Set a new column width (in pixels) for the output grid
      --gutter_width=GUTTER_WIDTH  Set a new gutter width (in pixels) for the output grid
      --column_count=COLUMN_COUNT  Set a new column count for the output grid
  -h, --help                       Show this help message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玻璃人 2024-08-29 07:03:58

根据使用帮助,我认为您需要指定参数名称,而不是简单地依赖它们的位置。您还指定了 -p 参数,但没有提供项目名称。也许这样的事情对你来说会更有效:

ruby compress.rb -o /var/www/css/blueprint/src/ --column_width=70 --gutter_width=15 --gutter_width=12

Based on the usage help I think you will need to specify the argument names instead of relying simply on their position. Also you specified the -p parameter without providing a project name. Perhaps something like this will work better for you:

ruby compress.rb -o /var/www/css/blueprint/src/ --column_width=70 --gutter_width=15 --gutter_width=12
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文